Permalink
Browse files

Added title helper

  • Loading branch information...
1 parent 0491dff commit 9e75adb849cb16428f43e0f6f49733aed6f6d5f0 Lloyd Blake committed Aug 22, 2011
Showing with 4 additions and 1 deletion.
  1. +0 −1 config/routes.rb
  2. +4 −0 spec/controllers/pages_controller_spec.rb
View
@@ -1,6 +1,5 @@
SampleApp::Application.routes.draw do
get "pages/home"
-
get "pages/contact"
get "pages/about"
@@ -19,6 +19,10 @@
response.should have_selector("title",
:content => "#{@base_title} | Home")
end
+ it "should have a non-blank body" do
+ get 'home'
+ response.body.should_not =~/<body\s*<\/body>/
+ end
end
describe "GET 'contact'" do

0 comments on commit 9e75adb

Please sign in to comment.