Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
sample_app_ch9/spec/requests/static_pages_spec.rb
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
35 lines (25 sloc)
749 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe "Static pages" do | |
subject { page } | |
describe "Home page" do | |
before { visit root_path } | |
it { should have_content('Sample App') } | |
it { should have_title(full_title('')) } | |
it { should_not have_title('| Home') } | |
end | |
describe "Help page" do | |
before { visit help_path } | |
it { should have_content('Help') } | |
it { should have_title(full_title('Help')) } | |
end | |
describe "About page" do | |
before { visit about_path } | |
it { should have_content('About') } | |
it { should have_title(full_title('About Us')) } | |
end | |
describe "Contact page" do | |
before { visit contact_path } | |
it { should have_content('Contact') } | |
it { should have_title(full_title('Contact')) } | |
end | |
end |