OSDN Git Service

update save_arc
[tdcgexplorer/nimono-crawlers.git] / spec / bowl_spec.rb
1 require 'lib/bowl'
2 $KCODE = 'U'
3
4 describe 'Bowl20110904', 'arc dl671' do
5   subject { Bowl20110904.new('dl671') }
6   before do
7     subject.load
8   end
9   its "code" do
10     should == 'dl671'
11   end
12   its "extname" do
13     should == 'zip'
14   end
15   its "summary" do
16     should == 'デリンジャーver.1.00'
17   end
18   its "tabs" do
19     should == %w[ MikuMikuDance MMDアクセサリ MMDモデル ]
20   end
21   its "origname" do
22     should == 'デリンジャー.zip'
23   end
24   its "number" do
25     should == 671
26   end
27 end
28
29 describe 'Bowl', 'arc dl140' do
30   subject { Bowl.new('dl140') }
31   before do
32     subject.load
33   end
34   it "should be removed" do
35     should be_removed
36   end
37 end
38
39 describe 'Bowl', 'arc dl391' do
40   subject { Bowl.new('dl391') }
41   before do
42     subject.load
43   end
44   it "should not be removed" do
45     should_not be_removed
46   end
47   it "should be locked" do
48     should be_locked
49   end
50   its "code" do
51     should == 'dl391'
52   end
53   its "extname" do
54     should == 'zip'
55   end
56   its "summary" do
57     should == 'アイギス Ver. 0.951'
58   end
59   its "tabs" do
60     should == %w[ MikuMikuDance MMDモデル ]
61   end
62   its "origname" do
63     should == 'アイギス v0951.zip'
64   end
65 end
66
67 describe 'Bowl', 'arc dl392' do
68   subject { Bowl.new('dl392') }
69   before do
70     subject.load
71   end
72   it "should not be removed" do
73     should_not be_removed
74   end
75   it "should not be locked" do
76     should_not be_locked
77   end
78   its "code" do
79     should == 'dl392'
80   end
81   its "extname" do
82     should == 'rar'
83   end
84   its "summary" do
85     should == 'サテンサン'
86   end
87   its "tabs" do
88     should == %w[ MikuMikuDance MMDモデル ]
89   end
90   its "origname" do
91     should == 'サテンサン.rar'
92   end
93 end