User.should_receive(:update_attributes).with({'these' => 'params'})
What does that statement mean? these
isn't instantiated anywhere as meaning anything.
The whole statement is this :
describe "with valid params" do
it "updates the requested user" do
User.should_receive(:find).with("37") { mock_user }
User.should_receive(:update_attributes).with({'these' => 'params'})
put :update, :id => "37", :user => {'these' => 'params'}
end
I say this because I'm getting an error :
unknown attribute: these
Which is coming from aforementioned scenario..