spec/stasis/plugins/render_spec.rb in stasis-0.1.23 vs spec/stasis/plugins/render_spec.rb in stasis-0.2.0.pre
- old
+ new
@@ -18,6 +18,22 @@
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
end