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

Version Path
stasis-0.1.10 spec/stasis/plugins/layout_spec.rb
stasis-0.1.9 spec/stasis/plugins/layout_spec.rb
stasis-0.1.8 spec/stasis/plugins/layout_spec.rb
stasis-0.1.7 spec/stasis/plugins/layout_spec.rb
stasis-0.1.6 spec/stasis/plugins/layout_spec.rb
stasis-0.1.5 spec/stasis/plugins/layout_spec.rb
stasis-0.1.4 spec/stasis/plugins/layout_spec.rb
stasis-0.1.3 spec/stasis/plugins/layout_spec.rb
stasis-0.1.2 spec/stasis/plugins/layout_spec.rb
stasis-0.1.1 spec/stasis/plugins/layout_spec.rb
stasis-0.1.0 spec/stasis/plugins/layout_spec.rb