Rails 3.1 layout specified in controller not overriding layout from parent controller when using Capybara / Selenium
I have a basic controller
class Admin::BaseController < ApplicationController before_filter :authenticate_admin! layout 'admin' end
inherited by another controller
class Admin::AdminsController < Admin::BaseController layout 'admin_bootstrap' ...actions end
If the child controller overrides the layout specified in the parent controller.
When viewed while the server is running, everything works as expected.
But when I run cucumber tests, the pages are rendered using the "admin" layout, not the "admin_bootstrap" layout.
I'm sure I'm just missing something silly.
Any advice is appreciated.
source to share
No one has answered this question yet
Check out similar questions: