lib/spec/rails/example/functional_example_group.rb in dchelimsky-rspec-rails-1.1.11.2 vs lib/spec/rails/example/functional_example_group.rb in dchelimsky-rspec-rails-1.1.11.3
- old
+ new
@@ -19,11 +19,11 @@
def params
request.parameters
end
def flash
- response.flash
+ @controller.__send__ :flash
end
def session
response.session
end
@@ -69,10 +69,10 @@
# #in thing_controller_spec
# get 'new'
# assigns[:registration].should == Thing.new
#--
# NOTE - Even though docs only use assigns[:key] format, this supports
- # assigns(:key) in order to avoid breaking old specs.
+ # assigns(:key) for backwards compatibility.
#++
def assigns(key = nil)
if key.nil?
_assigns_hash_proxy
else