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-3.0.38 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.37 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.36 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.35 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.33 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.32 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.31 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.30 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.29 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.28 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.27 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.26 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.25 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.24 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.23 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.20 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.19 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.18 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.17 spec/lib/reader_site_spec.rb
radiant-reader-extension-3.0.16 spec/lib/reader_site_spec.rb