2) Api::V1::StoresController GET /user/:user_id/stores/:id it should behave like succesful assigment and response with json
Failure/Error: it { should assign_to(:store).with(mock_store) }
Expected action to assign
Shared Example Group: "succesful assigment and response with json" called from ./spec/controllers/api/v1/stores_controller_spec.rb:31
3) Api::V1::StoresController GET /user/:user_id/stores/:id it should behave like succesful assigment and response with json
Failure/Error: it { assigns[:store].should equal(mock_store) }
expected
got
Compared using equal?, which compares object identity,
but expected and actual are not the same object. Use
'actual.should == expected' if you don't care about
object identity in this example.
Shared Example Group: "succesful assigment and response with json" called from ./spec/controllers/api/v1/stores_controller_spec.rb:31
# ./spec/controllers/api/v1/stores_controller_spec.rb:11
4) Api::V1::StoresController POST :create with valid params it should behave like succesful assigment and response with json
Failure/Error: it { should assign_to(:store).with(mock_store) }
Expected action to assign #<Store:0x830134c4 @name="Store_1015"> for store, but got #<User:0x8301a74c @name="User_1014">
Shared Example Group: "succesful assigment and response with json" called from ./spec/controllers/api/v1/stores_controller_spec.rb:45
# ./spec/controllers/api/v1/stores_controller_spec.rb:10
5) Api::V1::StoresController POST :create with valid params it should behave like succesful assigment and response with json
Failure/Error: it { assigns[:store].should equal(mock_store) }
expected #<Store:2197758540> => #<Store:0x82ff224c @name="Store_1017">
got #<User:2197787900> => #<User:0x82ff94fc @name="User_1016">
Compared using equal?, which compares object identity,
but expected and actual are not the same object. Use
'actual.should == expected' if you don't care about
object identity in this example.
Shared Example Group: "succesful assigment and response with json" called from ./spec/controllers/api/v1/stores_controller_spec.rb:45