OSDN Git Service

fixes bowl.locked
[tdcgexplorer/nimono-crawlers.git] / spec / bowl_spec.rb
1 require 'lib/bowl'
2 $KCODE = 'U'
3
4 describe 'Bowl20110904', 'arc dl9588' do
5   subject { Bowl20110904.new('dl9588') }
6   before do
7     subject.load
8   end
9   its "code" do
10     should == 'dl9588'
11   end
12   its "summary" do
13     should == '誰得鉄道モデルセット'
14   end
15   its "tabs" do
16     should == %w[ MikuMikuDance MMDアクセサリ MMD鉄道 ]
17   end
18   its "origname" do
19     should == '誰得鉄道モデルセット.zip'
20   end
21   its "number" do
22     should == 9588
23   end
24   it "should not be locked" do
25     should_not be_locked
26   end
27 end
28
29 describe 'Bowl20110904', 'arc dl9587' do
30   subject { Bowl20110904.new('dl9587') }
31   before do
32     subject.load
33   end
34   it "should be locked" do
35     should be_locked
36   end
37 end
38
39 describe 'Bowl20110904', 'arc dl671' do
40   subject { Bowl20110904.new('dl671') }
41   before do
42     subject.load
43   end
44   its "code" do
45     should == 'dl671'
46   end
47   its "extname" do
48     should == 'zip'
49   end
50   its "summary" do
51     should == 'デリンジャーver.1.00'
52   end
53   its "tabs" do
54     should == %w[ MikuMikuDance MMDアクセサリ MMDモデル ]
55   end
56   its "origname" do
57     should == 'デリンジャー.zip'
58   end
59   its "number" do
60     should == 671
61   end
62 end
63
64 describe 'Bowl', 'arc dl140' do
65   subject { Bowl.new('dl140') }
66   before do
67     subject.load
68   end
69   it "should be removed" do
70     should be_removed
71   end
72 end
73
74 describe 'Bowl', 'arc dl391' do
75   subject { Bowl.new('dl391') }
76   before do
77     subject.load
78   end
79   it "should not be removed" do
80     should_not be_removed
81   end
82   it "should be locked" do
83     should be_locked
84   end
85   its "code" do
86     should == 'dl391'
87   end
88   its "extname" do
89     should == 'zip'
90   end
91   its "summary" do
92     should == 'アイギス Ver. 0.951'
93   end
94   its "tabs" do
95     should == %w[ MikuMikuDance MMDモデル ]
96   end
97   its "origname" do
98     should == 'アイギス v0951.zip'
99   end
100 end
101
102 describe 'Bowl', 'arc dl392' do
103   subject { Bowl.new('dl392') }
104   before do
105     subject.load
106   end
107   it "should not be removed" do
108     should_not be_removed
109   end
110   it "should not be locked" do
111     should_not be_locked
112   end
113   its "code" do
114     should == 'dl392'
115   end
116   its "extname" do
117     should == 'rar'
118   end
119   its "summary" do
120     should == 'サテンサン'
121   end
122   its "tabs" do
123     should == %w[ MikuMikuDance MMDモデル ]
124   end
125   its "origname" do
126     should == 'サテンサン.rar'
127   end
128 end