Skip to content

Commit

Permalink
Code's spec now tests more things.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricioszabo committed Feb 24, 2012
1 parent 3878232 commit a0a3e9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/code_spec.rb
Expand Up @@ -60,7 +60,7 @@

it 'should show energy for both ships' do
run {
me.energy.should == 100
me.energy.should == 90
enemy.energy.should == 100
}
end
Expand Down Expand Up @@ -128,6 +128,7 @@ def this_code &block
player.stub!(:x).and_return(20)
player.stub!(:y).and_return(300)
player.stub!(:current_animation).and_return(0)
player.stub_chain(:energy, :level).and_return(90)
scene.instance_variable_set :@p1, player
scene.register_to code, :p1
scene.instance_variable_get :@code1
Expand Down

0 comments on commit a0a3e9f

Please sign in to comment.