OSDN Git Service

fixes bowl.locked
authornomeu <nomeu@users.sourceforge.jp>
Thu, 18 Oct 2012 01:25:55 +0000 (10:25 +0900)
committernomeu <nomeu@users.sourceforge.jp>
Thu, 18 Oct 2012 01:25:55 +0000 (10:25 +0900)
lib/bowl.rb
spec/bowl_spec.rb

index 41e3c85..9cbcb15 100644 (file)
@@ -63,7 +63,7 @@ class Bowl
   end
 
   def locked?
-    !!/認証キー/.match(@source)
+    !!/認証キーを入力/.match(@source)
   end
 
   def summary
index a77853a..ab02ebe 100644 (file)
@@ -1,6 +1,41 @@
 require 'lib/bowl'
 $KCODE = 'U'
 
+describe 'Bowl20110904', 'arc dl9588' do
+  subject { Bowl20110904.new('dl9588') }
+  before do
+    subject.load
+  end
+  its "code" do
+    should == 'dl9588'
+  end
+  its "summary" do
+    should == '誰得鉄道モデルセット'
+  end
+  its "tabs" do
+    should == %w[ MikuMikuDance MMDアクセサリ MMD鉄道 ]
+  end
+  its "origname" do
+    should == '誰得鉄道モデルセット.zip'
+  end
+  its "number" do
+    should == 9588
+  end
+  it "should not be locked" do
+    should_not be_locked
+  end
+end
+
+describe 'Bowl20110904', 'arc dl9587' do
+  subject { Bowl20110904.new('dl9587') }
+  before do
+    subject.load
+  end
+  it "should be locked" do
+    should be_locked
+  end
+end
+
 describe 'Bowl20110904', 'arc dl671' do
   subject { Bowl20110904.new('dl671') }
   before do