diff options
| author | mo khan <mo@mokhan.ca> | 2016-05-14 08:20:21 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2016-05-14 08:20:21 -0600 |
| commit | c7dacd83803bde00eb739cadf736efbdb7e1d77a (patch) | |
| tree | bbda107ebe4ee4c5dc8ee617a2861c93006a44f6 /spec/controllers | |
| parent | 5016cb1091b700c13d8170474b68bf0fd7f6bfa2 (diff) | |
add gyms#show.
Diffstat (limited to 'spec/controllers')
| -rw-r--r-- | spec/controllers/gyms_controller_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/controllers/gyms_controller_spec.rb b/spec/controllers/gyms_controller_spec.rb index c41285f..70d9564 100644 --- a/spec/controllers/gyms_controller_spec.rb +++ b/spec/controllers/gyms_controller_spec.rb @@ -99,4 +99,12 @@ describe GymsController do end end end + + describe "#show" do + it 'loads the gym' do + gym = create(:gym) + get :show, id: gym.id + expect(assigns(:gym)).to eql(gym) + end + end end |
