Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'spec_helper'
- describe "Static pages" do
- describe "Home Page" do
- it "should have the h1 'Sample App'" do
- visit '/static_pages/home'
- page.should have_selector('h1', :text => 'Sample App')
- end
- it "should have the title 'Home'"
- visit '/static_pages/home'
- page.should have_selector('title', :text => "Ruby on Rails Sample App | Home")
- end
- end
- describe "Help Page" do
- it "should have the h1 'Help'" do
- visit 'static_pages/help'
- page.should have_selector('h1', :text => 'Help')
- end
- it "should have the title 'Help'" do
- visit 'static_pages/help'
- page.should have_selector('title', :text => "Ruby on Rails Sample App | Help")
- end
- end
- describe "About Page" do
- it "should have the h1 'About'"
- visit 'static_pages/help'
- page.should have_selector('h1', :text => 'Help')
- end
- it "should have the title 'Help'"
- visit 'static_pages/help'
- page.should have_selector('title', :text => "Ruby on Rails Sample App | About")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement