search for: base_controller_spec

Displaying 1 result from an estimated 1 matches for "base_controller_spec".

Did you mean: bar_controller_spec
2013 Mar 20
2
Rspec + Devise + BaseController
...############################################## #app/controllers/admins/base_controller.rb class Admins::BaseController < ApplicationController layout "admin_cms" before_filter :authenticate_admin! end ##################################################### #spec/controllers/admins/base_controller_spec.rb require ''spec_helper'' describe Admins::BaseController do controller do def index end end describe "before_filter#authenticate_admin!" do before(:each) do @admin = FactoryGirl.create(:admin) @request.env["devise.mapping"] = De...