Module: Spree::Api::TestingSupport::Setup

Defined in:
lib/spree/api/testing_support/setup.rb

Instance Method Summary collapse

Instance Method Details

#sign_in_as_admin!Object



7
8
9
10
11
# File 'lib/spree/api/testing_support/setup.rb', line 7

def 
  let!(:current_api_user) do
    stub_model(Spree::LegacyUser, spree_roles: [Spree::Role.find_or_initialize_by(name: 'admin')])
  end
end