summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2016-05-01 18:33:34 -0600
committermo khan <mo@mokhan.ca>2016-05-01 18:33:34 -0600
commita984421922fa820df73207589128dd08566d4586 (patch)
tree083dc6e6dd4b228695b164ac7707b38f0124ef1b /features
parente34da2efc2c8e5397089bba48382af6c04c8b5f5 (diff)
start to work on search.
Diffstat (limited to 'features')
-rw-r--r--features/finding_a_gym.feature6
-rw-r--r--features/step_definitions/gym_steps.rb1
2 files changed, 4 insertions, 3 deletions
diff --git a/features/finding_a_gym.feature b/features/finding_a_gym.feature
index 4afad6f..da36b06 100644
--- a/features/finding_a_gym.feature
+++ b/features/finding_a_gym.feature
@@ -9,6 +9,8 @@ Feature: Finding a gym
Then it lists all gyms
Scenario: Find a gym in a city
- Given the user is on the gyms page
- When I choose a city
+ Given the user is logged in
+ And There are 3 gyms
+ When the user is on the gyms page
+ And I choose a city
Then it lists all gyms
diff --git a/features/step_definitions/gym_steps.rb b/features/step_definitions/gym_steps.rb
index d02559a..382d66a 100644
--- a/features/step_definitions/gym_steps.rb
+++ b/features/step_definitions/gym_steps.rb
@@ -10,7 +10,6 @@ And /^There are (\d) gyms$/ do |n|
end
Then /^it lists all gyms$/ do
- puts page.html
@gyms.each do |gym|
expect(@subject).to have_content(gym.name)
end