asciinema.org/spec/features/pages_spec.rb
2014-08-30 20:10:49 +02:00

38 lines
698 B
Ruby

require 'rails_helper'
feature "Static pages" do
scenario 'Visiting "about" page' do
visit about_path
within('.main') do
expect(page).to have_content(/About Asciinema/i)
end
end
scenario 'Visiting "terms of service" page' do
visit tos_path
within('.main') do
expect(page).to have_content(/Terms of Service/i)
end
end
scenario 'Visiting "privacy policy" page' do
visit privacy_path
within('.main') do
expect(page).to have_content(/Privacy Policy/i)
end
end
scenario 'Visiting "contributing" page' do
visit contributing_path
within('.main') do
expect(page).to have_content(/Contributing/i)
end
end
end