Skip to content

Commit

Permalink
Add render blank text, because rspec + 2.3 now requires a render or r…
Browse files Browse the repository at this point in the history
…edirect (i.e. isolation mode is not working like it used to)
  • Loading branch information
ianwhite committed Feb 3, 2009
1 parent 1a0842a commit 307df05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/controllers/default_rails_behaviour_spec.rb
Expand Up @@ -5,13 +5,15 @@ class TheController < ActionController::Base
def two_respond_tos
respond_to {|f| f.html { first }}
respond_to {|f| f.html { second }}
render :text => ""
end

def two_responses
respond_to do |f|
f.html { first }
f.html { second }
end
render :text => ""
end
end

Expand Down

0 comments on commit 307df05

Please sign in to comment.