[rspec-users] How to expect no layout
nick at deadorange.com
Mon Nov 10 20:23:33 EST 2008
Hey guys. I've told one of my controllers to not render a layout for a
layout false, :only => :map_info_window
Now I'm trying to spec that, but this:
it 'should not render a layout' do
fails with this:
Spec::Mocks::MockExpectationError in 'PropertiesController handling
GET /properties/1/map_info_window should not render a layout'
Mock 'expect_render_mock_proxy' expected :render with (:layout) once,
but received it 0 times
I'm using RSpec v1.1.4 . I know it's old, but I haven't gotten around
to upgrading yet!
More information about the rspec-users