webdev.camp/spec/features/visitors/navigation_spec.rb

19 lines
505 B
Ruby
Raw Normal View History

2016-03-21 17:46:14 +01:00
# Feature: Navigation links
# As a visitor
# I want to see navigation links
# So I can find home, sign in, or sign up
feature 'Navigation links', :devise do
# Scenario: View navigation links
# Given I am a visitor
# When I visit the home page
# Then I see "home," "sign in," and "sign up"
scenario 'view navigation links' do
visit root_path
2016-04-15 16:52:14 +02:00
expect(page).to have_content 'Course'
2016-03-21 17:46:14 +01:00
expect(page).to have_content 'Sign in'
2016-04-15 16:52:14 +02:00
expect(page).to have_content 'Apply'
2016-03-21 17:46:14 +01:00
end
end