Permalink
Browse files

cleaned up tests

  • Loading branch information...
1 parent 77d6a86 commit 361ac91cb7bfaa49319173298e61b3aab918f05d @mspwong committed Aug 28, 2011
Showing with 5 additions and 6 deletions.
  1. +5 −6 game_spec.rb
View
@@ -39,7 +39,7 @@
end
- describe "Moving" do
+ describe "move" do
before(:each) do
@game = Game.new
@piece = {:team => :white, :piece_num => 12}
@@ -87,11 +87,11 @@
lambda { @game.move(piece, [x-1, y+1]) }.should raise_error(RuntimeError)
end
end
- end
- describe "by a white piece" do
- it "results in exception" do
- lambda { @game.move(@piece, [@x, @y-1]) }.should raise_error(RuntimeError)
+ describe "by a white piece" do
+ it "results in exception" do
+ lambda { @game.move(@piece, [@x, @y-1]) }.should raise_error(RuntimeError)
+ end
end
end
@@ -116,7 +116,6 @@
end
end
end
-
end
describe "Move to valid square" do

0 comments on commit 361ac91

Please sign in to comment.