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