Sha256: 957688440c7ed471fb582a837ede7056e20ee415c83683abf13c8a66a60c747c

Contents?: true

Size: 519 Bytes

Versions: 59

Compression:

Stored size: 519 Bytes

Contents

require File.dirname(__FILE__) + "/../spec_helper"

if defined? Site
  describe 'Reader-extended site' do
    dataset :reader_layouts, :reader_sites
    Radiant::Config['reader.layout'] = 'This one'

    it "should have a reader_layout association" do
      Site.reflect_on_association(:reader_layout).should_not be_nil
    end
    
    it "should be able to set its own layout" do
      site = sites(:mysite)
      site.reader_layout = layouts(:other)
      site.layout_for(:reader).should == 'Other'
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
radiant-reader-extension-1.3.10 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.3.9 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.3.8 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.3.7 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.3.6 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.3.4 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.3.3 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.3.1 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.3.0 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.2.4 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.2.3 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.2.2 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.2.1 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.2.0 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.1.1 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.1.0 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.0.1 spec/lib/reader_site_spec.rb
radiant-reader-extension-1.0.0 spec/lib/reader_site_spec.rb
radiant-reader-extension-0.9.2 spec/lib/reader_site_spec.rb