url-shortener/features/step_definitions/steps.rb

24 lines
343 B
Ruby

# GIVEN
Given('I visit the homepage') do
visit '/'
end
# WHEN
# THEN
Then('I should see text {string}') do |string|
page.should have_content string
end
Then('I should see a form field {string}') do |string|
page.should have_field string
end
Then('I should see a {string} button') do |string|
page.should have_button string
end