asciinema.org/spec/features/docs_spec.rb

66 lines
1.1 KiB
Ruby
Raw Normal View History

2014-08-30 17:38:47 +00:00
require 'rails_helper'
2013-05-27 20:03:16 +00:00
feature "Docs" do
2013-11-18 11:17:05 +00:00
scenario 'Visiting "how it works" page' do
visit docs_path('how-it-works')
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
visit docs_path('getting-started')
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
2014-12-17 15:25:13 +00:00
scenario 'Visiting usage page' do
visit docs_path(:usage)
2013-05-27 20:03:16 +00:00
within('.main') do
2014-12-17 15:25:13 +00:00
expect(page).to have_content('Usage')
2013-05-27 20:03:16 +00:00
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