Top 4 lines of pages_controller_spec.
require 'spec_helper'
require 'spec_controllers_helper'
describe PagesController do
before(:each) do
controller.stub!(:app_initialization).and_return(true)
end
Top 4 lines of admin/pages_controller_spec.
require 'spec_helper'
require 'spec_controllers_helper'
describe Admin::PagesController do
include Devise::TestHelpers
before(:each) do
controller.stub!(:app_initialization).and_return(true)
log_in_test_user(Admin)
end
(changing PagesController to ::PagesController does nothing)
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users