Module: Spree::TestingSupport::AuthorizationHelpers::Controller

Defined in:
lib/spree/testing_support/authorization_helpers.rb

Instance Method Summary collapse

Instance Method Details

#stub_authorization!Object



5
6
7
8
9
# File 'lib/spree/testing_support/authorization_helpers.rb', line 5

def stub_authorization!
  before do
    controller.stub :authorize! => true
  end
end