Created
May 10, 2012 21:23
-
-
Save alexch/2655994 to your computer and use it in GitHub Desktop.
New test for chapter 5 of RailsTutorial
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
describe ApplicationHelper do | |
describe "full_title" do | |
it "includes the page name" do | |
full_title("foo").should include("foo") | |
end | |
it "includes the base name" do | |
full_title("foo").should include("Ruby on Rails Tutorial Sample App") | |
end | |
it "doesn't include a bar for the home page" do | |
full_title("").should_not include('|') | |
end | |
end | |
end | |
# Now inside the StaticPages spec we can do | |
# | |
# describe "Static pages" do | |
# include ApplicationHelper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment