User.should_receive(:update_attributes).with({'these' => 'params'})
その声明はどういう意味ですか?these
何かを意味するものとしてどこにもインスタンス化されていません。
ステートメント全体は次のとおりです。
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
エラーが発生したため、これを言います:
unknown attribute: these
これは、前述のシナリオから来ています..