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

Version Path
radiant-event_calendar-extension-1.5.1 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.5.0 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.4.14 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.4.12 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.4.10 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.4.9 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.4.8 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.4.7 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.4.6 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.4.5 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.4.2 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.4.1 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.4.0 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.3.9 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.3.8 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.3.7 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.3.6 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.3.5 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.3.4 spec/lib/event_calendar_page_spec.rb
radiant-event_calendar-extension-1.3.3 spec/lib/event_calendar_page_spec.rb