From c0faca04f0fb4858852f8750294f4f725f931a32 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sun, 9 Dec 2012 16:27:12 +0100 Subject: [PATCH] Namespace ControllerMacros module --- spec/spec_helper.rb | 2 +- spec/support/controller_macros.rb | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 42c96bc..2e440ec 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -18,7 +18,7 @@ Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } RSpec.configure do |config| config.mock_with :rspec config.use_transactional_fixtures = false - config.include ControllerMacros, :type => :controller + config.include AsciiIo::ControllerMacros, :type => :controller config.infer_base_class_for_anonymous_controllers = false config.before(:each) do diff --git a/spec/support/controller_macros.rb b/spec/support/controller_macros.rb index 4dcd33f..408e5a3 100644 --- a/spec/support/controller_macros.rb +++ b/spec/support/controller_macros.rb @@ -1,7 +1,7 @@ -module ControllerMacros - - def login_as(user) - controller.stub(:current_user => user) +module AsciiIo + module ControllerMacros + def login_as(user) + controller.stub(:current_user => user) + end end - end