Sha256: dca2772332afef9889becc86593009c64e3a7827bbef00a6f727b854b84c6bab

Contents?: true

Size: 751 Bytes

Versions: 24

Compression:

Stored size: 751 Bytes

Contents

require 'spec_helper'

describe Stasis::Render do

  before(:all) do
    generate
  end
  
  it "should render partials into index.html" do
    $files['index.html'].should =~ /render from root\nroot/
    $files['index.html'].should =~ /render from subdirectory\nsubdirectory/
  end

  it "should render partials into subdirectory/index.html" do
    $files['subdirectory/index.html'].should =~ /render from root\nroot/
    $files['subdirectory/index.html'].should =~ /render from subdirectory\nsubdirectory/
  end

  it "should render partials into no_controller/index.html" do
    $files['no_controller/index.html'].should =~ /render from root\nroot/
    $files['no_controller/index.html'].should =~ /render from subdirectory\nsubdirectory/
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
stasis-0.1.23 spec/stasis/plugins/render_spec.rb
stasis-0.1.22 spec/stasis/plugins/render_spec.rb
stasis-0.1.21 spec/stasis/plugins/render_spec.rb
stasis-0.1.20 spec/stasis/plugins/render_spec.rb
stasis-0.1.19 spec/stasis/plugins/render_spec.rb
stasis-0.1.18 spec/stasis/plugins/render_spec.rb
stasis-0.1.17 spec/stasis/plugins/render_spec.rb
stasis-0.1.16 spec/stasis/plugins/render_spec.rb
stasis-0.1.15 spec/stasis/plugins/render_spec.rb
stasis-0.1.14 spec/stasis/plugins/render_spec.rb
stasis-0.1.13 spec/stasis/plugins/render_spec.rb
stasis-0.1.12 spec/stasis/plugins/render_spec.rb
stasis-0.1.11 spec/stasis/plugins/render_spec.rb
stasis-0.1.10 spec/stasis/plugins/render_spec.rb
stasis-0.1.9 spec/stasis/plugins/render_spec.rb
stasis-0.1.8 spec/stasis/plugins/render_spec.rb
stasis-0.1.7 spec/stasis/plugins/render_spec.rb
stasis-0.1.6 spec/stasis/plugins/render_spec.rb
stasis-0.1.5 spec/stasis/plugins/render_spec.rb
stasis-0.1.4 spec/stasis/plugins/render_spec.rb