diff options
| author | mo khan <mo@mokhan.ca> | 2016-07-04 14:52:06 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2016-07-04 14:59:24 -0600 |
| commit | 2eebbd33137c7e45c81bc36b9c4fc0ee0578032a (patch) | |
| tree | 1ae0fb7b14673883be3b129fd3f794028c5e7958 /spec/controllers/profiles_controller_spec.rb | |
| parent | 2bb11c60de4ec1feebad704b285c0c0fe9d6584f (diff) | |
hound happy.
Diffstat (limited to 'spec/controllers/profiles_controller_spec.rb')
| -rw-r--r-- | spec/controllers/profiles_controller_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/controllers/profiles_controller_spec.rb b/spec/controllers/profiles_controller_spec.rb index 9c2ab05..a5bb00a 100644 --- a/spec/controllers/profiles_controller_spec.rb +++ b/spec/controllers/profiles_controller_spec.rb @@ -45,7 +45,9 @@ describe ProfilesController do describe "#update" do it "updates the user profile" do - patch :update, params: { id: user.to_param, profile: { gender: "male" } } + patch :update, params: { + id: user.to_param, profile: { gender: "male" } + } user.reload expect(user.profile.male?).to be_truthy expect(response).to redirect_to(profile_path(user.profile)) @@ -54,7 +56,9 @@ describe ProfilesController do it 'saves the users home gym' do gym = create(:gym) - patch :update, params: { id: user.to_param, profile: { gym_id: gym.id } } + patch :update, params: { + id: user.to_param, profile: { gym_id: gym.id } + } expect(user.reload.profile.gym).to eql(gym) end |
