Displaying 1 result from an estimated 1 matches for "0_7_2".
Did you mean:
v_7_2
2006 Nov 21
1
assigns in trunk
...customers_controller_spec.rb:23:in `assigns''
In the rspec rails plugin trunk (revision 1126), in /lib/spec/rails/
context/controller.rb, assigns is defined as:
def assigns
@ivar_proxy ||= Spec::Rails::IvarProxy.new @controller
end
whereas if i get the tagged version for 0_7_2 it was defined thus:
def assigns(key=nil)
return assigns[key] unless key.nil?
@ivar_proxy ||= Test::Rails::IvarProxy.new(controller)
end
So, if I change the code in my spec to
assigns[:customer].should == @customer
it works.
Is this the right thing to do at the moment fo...