spec/bonsai/page_spec.rb in bonsai-1.0.1 vs spec/bonsai/page_spec.rb in bonsai-1.1.0

- old
+ new

@@ -1,5 +1,7 @@ +# coding: utf-8 + require "#{File.dirname(__FILE__)}/../spec_helper" describe Bonsai::Page do it "should respond to all" do Bonsai::Page.should respond_to :all @@ -24,9 +26,18 @@ it "should have a permalink" do @page.permalink.should == "/about-us/history" end + it "should have a ctime" do + @page.should respond_to :ctime + @page.ctime.should be_an_instance_of(Time) + end + + it "should have an mtime" do + @page.should respond_to :mtime + @page.mtime.should be_an_instance_of(Time) + end it "should remove numbers over 10 from the permalink" do Bonsai::Page.find("many-pages").permalink.should == "/many-pages" end it "should have a write_path" do \ No newline at end of file