Commit a984421
Changed files (2)
features
step_definitions
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
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