Skip to content

Commit

Permalink
cleaned up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mspwong committed Aug 28, 2011
1 parent 77d6a86 commit 361ac91
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions game_spec.rb
Expand Up @@ -39,7 +39,7 @@
end


describe "Moving" do
describe "move" do
before(:each) do
@game = Game.new
@piece = {:team => :white, :piece_num => 12}
Expand Down Expand Up @@ -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

Expand All @@ -116,7 +116,6 @@
end
end
end

end

describe "Move to valid square" do
Expand Down

0 comments on commit 361ac91

Please sign in to comment.