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
- # Title test <title></title>
- #it 'should have title\'Home \' ' do
- # visit '/static_pages/home/'
- # expect(page).to have_title("Ruby on Rails Tutorial Sample App | Home")
- #end
- let (:title_start) {"Ruby on Rails Tutorial Sample App | "}
- it 'should have title\'Home \' ' do
- visit '/static_pages/home/'
- expect(page).to have_title(eq("#{:title_start}Home"))
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement