Sha256: 8ebfcf420b3a6b1b4dd24d9455d2b2bfa1c800e83201900c1ab8f457341880c8
Contents?: true
Size: 858 Bytes
Versions: 11
Compression:
Stored size: 858 Bytes
Contents
require 'spec_helper' describe Stasis::Layout do before(:all) do generate end it "should render root layouts" do $files['layout_action.html'].should =~ /layout\nroot\npass/ $files['layout_action_from_subdirectory.html'].should =~ /layout\nsubdirectory\npass/ $files['layout_controller.html'].should =~ /layout\nroot\npass/ $files['layout_controller_from_subdirectory.html'].should =~ /layout\nsubdirectory\npass/ end it "should render subdirectory layouts" do $files['subdirectory/layout_action.html'].should =~ /layout\nsubdirectory\npass/ $files['subdirectory/layout_action_from_root.html'].should =~ /layout\nroot\npass/ $files['subdirectory/layout_controller.html'].should =~ /layout\nsubdirectory\npass/ $files['subdirectory/layout_controller_from_root.html'].should =~ /layout\nroot\npass/ end end
Version data entries
11 entries across 11 versions & 1 rubygems