Sha256: 6169d15dedd6bad846bc7d1dbeea34cd6eb5081f4d6e2bb6d4d676b64cc218ba
Contents?: true
Size: 1.18 KB
Versions: 6
Compression:
Stored size: 1.18 KB
Contents
require File.join(File.dirname(__FILE__), "spec_helper") describe Merb::AbstractController, " displaying objects with templates" do before do Merb.push_path(:layout, File.dirname(__FILE__) / "controllers" / "views" / "layouts") end it "should allow you to pass an object" do dispatch_should_make_body("DisplayObject", "the index") end it "should allow you to pass an object with an action specified" do dispatch_should_make_body("DisplayObjectWithAction", "new action", :create) end it "should allow you to pass an object with a path specified for the template" do dispatch_should_make_body("DisplayObjectWithPath", "fooness") end it "should allow you to pass an object using multiple template root" do dispatch_should_make_body("DisplayObjectWithMultipleRoots", "App: new index") end it "should allow you to pass an object using multiple template root, with layout" do dispatch_should_make_body("DisplayObjectWithMultipleRoots", "Alt: new show", "show") end it "should allow you to pass an object using multiple template root, without layout" do dispatch_should_make_body("DisplayObjectWithMultipleRoots", "fooness", "another") end end
Version data entries
6 entries across 6 versions & 3 rubygems