Skip to content
Browse files

cleanup IntegrationTest.

  • Loading branch information...
1 parent 2d4b982 commit 03bea4588afc93495ae90afa7d6f343e8f030dd6 @apotonick apotonick committed Feb 22, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/rails/rails_integration_test.rb
View
8 test/rails/rails_integration_test.rb
@@ -22,14 +22,14 @@ def eating; render; end
@controller.instance_eval do
def widget
- render :text => render_widget('mum')
+ render :text => render_widget('mum', :eat)
end
end
end
should "provide the rails view helpers in state views" do
@mum.instance_eval do
- def eating; render :view => :make_me_squeak; end
+ def eat; render :view => :make_me_squeak; end
end
get 'widget'
@@ -67,7 +67,7 @@ def squeak(evt); render :text => "<b>SQUEAK!</b>"; end
setup do
@controller.instance_eval do
def widget
- render :inline => "<%= render_widget 'mum' %>"
+ render :inline => "<%= render_widget 'mum', :eat %>"
end
end
end
@@ -78,7 +78,7 @@ def widget
end
should "respond to #url_for_event" do
- @controller.class_eval do
+ @controller.instance_eval do
def widget
render :inline => "<%= url_for_event :footsteps, :source => 'mum' %>"
end

0 comments on commit 03bea45

Please sign in to comment.
Something went wrong with that request. Please try again.