1 require File.join( File.dirname(__FILE__), "..", "spec_helper" )
5 it "should have a name and title" do
7 @page.should_not be_valid
8 @page.name = "interesting-content"
9 @page.title = "Interesting Content"
13 it "should have content"
14 it "should have a displayed on date"
15 it "should have a created on date"
17 it "should provide a url" do
19 @page.name = "my-page"
20 @page.title = "My Page"
22 @page.url.should == "my-page"