I want to write a rspec test that tests if correct layout is used for controller. (Actually I want to test that no layout is used :) ).
I did some googling and also Looked here Testing rendering of a given layout with RSpec & Rails
But all of this does not work for Rails3.
I have used:
controller.layout
and
controller.class.read_inheritable_attribute(:layout)
but none of these give me actual layout used.
Do you have any ideas how to get which layout was used for controller?