Skip to content

Commit

Permalink
GameObject removing a missing shape should have no effect.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacius committed Feb 24, 2009
1 parent a5692b3 commit 2a79405
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/gameobject_spec.rb
Expand Up @@ -74,6 +74,12 @@
@gob.shapes.should == [:shape1, :shape3]
end

it "removing a missing shape should have no effect" do
@gob.add_shapes( :shape1, :shape2, :shape3 )
@gob.remove_shapes( :shape4 )
@gob.shapes.should == [:shape1, :shape2, :shape3]
end

end


Expand Down

0 comments on commit 2a79405

Please sign in to comment.