asciinema.org/spec/features/docs_spec.rb

66 lines
1.1 KiB
Ruby
Raw Normal View History

2013-05-27 20:03:16 +00:00
require 'spec_helper'
feature "Docs" do
2013-11-18 11:17:05 +00:00
scenario 'Visiting "how it works" page' do
visit docs_path(:howitworks)
2013-05-27 20:03:16 +00:00
within('.main') do
2013-11-18 11:17:05 +00:00
expect(page).to have_content('How it works')
2013-05-27 20:03:16 +00:00
end
expect_doc_links
end
2013-11-18 11:17:05 +00:00
scenario 'Visiting "getting started" page' do
2013-10-20 15:03:12 +00:00
visit docs_path(:gettingstarted)
2013-05-27 20:03:16 +00:00
within('.main') do
expect(page).to have_content('Getting started')
end
expect_doc_links
end
2013-10-20 15:03:12 +00:00
scenario 'Visiting installation page' do
visit docs_path(:installation)
within('.main') do
expect(page).to have_content('Installation')
end
expect_doc_links
end
2013-05-27 20:03:16 +00:00
scenario 'Visiting options page' do
visit docs_path(:options)
within('.main') do
expect(page).to have_content('Recorder options')
end
expect_doc_links
end
2013-10-20 15:03:12 +00:00
scenario 'Visiting embedding page' do
visit docs_path(:embedding)
within('.main') do
expect(page).to have_content('Embedding')
end
expect_doc_links
end
scenario 'Visiting FAQ page' do
visit docs_path(:faq)
within('.main') do
expect(page).to have_content('Frequently Asked Questions')
end
expect_doc_links
end
2013-05-27 20:03:16 +00:00
end