[rspec-users] Testing Layout
Bart Zonneveld
loop at superinfinite.com
Wed Apr 16 09:40:45 EDT 2008
On 16-apr-2008, at 13:57, Andy Croll wrote:
> Is there a way to specify which layout an action should use in a
> controller?
Off the top of my head, not tested:
describe MyController do
it "should use the foo layout" do
MyController.should_receive(:layout).with("foo")
load("app/controllers/my_controller")
end
end
but I'm sure there's a more BDD way to do it (TIMTOWTDI goes BDDWTDI ?).
greetz,
bartz
More information about the rspec-users
mailing list