2014-08-30 17:38:47 +00:00
|
|
|
require 'rails_helper'
|
2013-11-18 11:22:29 +00:00
|
|
|
|
|
|
|
feature "Static pages" do
|
|
|
|
|
2013-12-03 19:09:18 +00:00
|
|
|
scenario 'Visiting "about" page' do
|
2013-11-18 11:22:29 +00:00
|
|
|
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
|
|
|
|
|
2013-12-03 19:09:18 +00:00
|
|
|
scenario 'Visiting "contributing" page' do
|
|
|
|
visit contributing_path
|
|
|
|
|
|
|
|
within('.main') do
|
|
|
|
expect(page).to have_content(/Contributing/i)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-11-18 11:22:29 +00:00
|
|
|
end
|