samples/test/scene_riot.rb in ray-0.1.0.pre1 vs samples/test/scene_riot.rb in ray-0.1.0
- old
+ new
@@ -8,11 +8,11 @@
helper(:raise_event) { |*args| @game.raise_event(*args) }
helper(:run_event_loop) { @game.event_runner.run }
setup do
@game = AwesomeGame.new
- @scene = @game.registred_scene(:awesome_scene)
+ @scene = @game.registered_scene(:awesome_scene)
@scene.register
@scene.setup
@scene
@@ -28,12 +28,12 @@
asserts("cursor position") { topic.cursor.pos }.equals Ray::Vector2[100, 100]
end
asserts "draws its cursor" do
- stub(topic.cursor).draw_on
- topic.render Ray.screen
+ stub(topic.window).draw
+ topic.render topic.window
- received(topic.cursor).draw_on(is_a(Ray::Image)).call
+ received(topic.window).draw(topic.cursor).call
true
end
end