OSDN Git Service

Board#fill_blindのspec定義漏れ部分を追加
authorparrot <parrot@users.sourceforge.jp>
Sun, 9 May 2010 08:53:39 +0000 (17:53 +0900)
committerparrot <parrot@users.sourceforge.jp>
Sun, 9 May 2010 08:53:39 +0000 (17:53 +0900)
spec/rdgc/map/08_blind_area_spec.rb

index 24e6e48..b99925d 100644 (file)
@@ -184,6 +184,15 @@ describe "blind mode" do
           @board.blind_data[x][y].should == :blind\r
         end\r
       end\r
+\r
+      @board.set_blind_mode(:none)\r
+      @board.fill_blind\r
+\r
+      @board.areas.each do |r|\r
+        r.each do |x, y|\r
+          @board.blind_data[x][y].should == :none\r
+        end\r
+      end\r
     end\r
 \r
     it "#dark? judge this point is :dark now" do\r