Skip to content

Instantly share code, notes, and snippets.

@keeperofthenecklace
Created August 18, 2012 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keeperofthenecklace/3388736 to your computer and use it in GitHub Desktop.
Save keeperofthenecklace/3388736 to your computer and use it in GitHub Desktop.
spec/helpers/application_helper.rb
require 'spec_helper'
describe ApplicationHelper do
describe "full_title" do
it "should include the page title" do
full_title("foo").should =~ /foo/
end
it "should include the base title" do
full_title("foo").should =~ /^CNN QUICK NEWS UPDATE/
end
it "should not include a bar for the home page" do
full_title("").should_not =~ /\|/
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment