"controller.active_layout.name" will give u the currently used layout's name
http://stackoverflow.com/questions/109284/testing-rendering-of-a-given-layout-with-rspec-rails
http://stackoverflow.com/questions/3326579/rails3-get-current-layout-name-inside-view
http://stackoverflow.com/questions/109284/testing-rendering-of-a-given-layout-with-rspec-rails
http://stackoverflow.com/questions/3326579/rails3-get-current-layout-name-inside-view
No comments:
Post a Comment