Sha256: e9b433b6c2101729c61832f9d6d32a1d4f9f0b5b9bb55fb4f60eb4344fd06083
Contents?: true
Size: 623 Bytes
Versions: 29
Compression:
Stored size: 623 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe EventCalendarPage do dataset :calendar_pages it "should be a page" do pages(:calendar).is_a?(Page).should be_true end it "should be cacheable" do pages(:calendar).cache?.should be_true end describe ".find_by_url" do it "should return self to our own url" do pages(:calendar).find_by_url("/#{pages(:calendar).slug}/").should == pages(:calendar) end it "should return self to any child url" do pages(:calendar).find_by_url("/#{pages(:calendar).slug}/something").should == pages(:calendar) end end end
Version data entries
29 entries across 29 versions & 1 rubygems