summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2016-05-14 08:20:21 -0600
committermo khan <mo@mokhan.ca>2016-05-14 08:20:21 -0600
commitc7dacd83803bde00eb739cadf736efbdb7e1d77a (patch)
treebbda107ebe4ee4c5dc8ee617a2861c93006a44f6 /spec/controllers
parent5016cb1091b700c13d8170474b68bf0fd7f6bfa2 (diff)
add gyms#show.
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/gyms_controller_spec.rb8
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