Sha256: 1d3ce491342b1cddd9af0866d907fad1829ec92b8aca1aacef17479ed87b525b
Contents?: true
Size: 1.57 KB
Versions: 1
Compression:
Stored size: 1.57 KB
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 it "should render locals into before_render_locals.html" do $files['before_render_locals.html'].should =~ /true/ end it "should render locals into subdirectory/before_render_locals.html" do $files['subdirectory/before_render_locals.html'].should =~ /true/ end it "should render locals into render_locals.html" do $files['render_locals.html'].should =~ /true/ end it "should render locals into subdirectory/render_locals.html" do $files['subdirectory/render_locals.html'].should =~ /true/ end it "should respect Stasis::Options.set_template_option settings in template_options.css" do $files['template_options.css'].should =~ /pass: true/ end it "should respect Stasis::Options.set_template_option settings in before blocks template_options.html" do $files['template_options.css'].should =~ /pass: true/ end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stasis-0.2.0 | spec/stasis/plugins/render_spec.rb |