Sha256: 47719e59a79cbfbee39fc864b9d70bf471edeb000e5432d1d371ca107fd66006

Contents?: true

Size: 330 Bytes

Versions: 118

Compression:

Stored size: 330 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

118 entries across 118 versions & 1 rubygems

Version Path
solidus_api-2.11.4 lib/spree/api/testing_support/setup.rb
solidus_api-2.11.3 lib/spree/api/testing_support/setup.rb
solidus_api-2.11.2 lib/spree/api/testing_support/setup.rb
solidus_api-2.11.1 lib/spree/api/testing_support/setup.rb
solidus_api-2.10.3 lib/spree/api/testing_support/setup.rb
solidus_api-2.11.0 lib/spree/api/testing_support/setup.rb
solidus_api-2.10.2 lib/spree/api/testing_support/setup.rb
solidus_api-2.9.6 lib/spree/api/testing_support/setup.rb
solidus_api-2.8.6 lib/spree/api/testing_support/setup.rb
solidus_api-2.10.1 lib/spree/api/testing_support/setup.rb
solidus_api-2.9.5 lib/spree/api/testing_support/setup.rb
solidus_api-2.10.0 lib/spree/api/testing_support/setup.rb
solidus_api-2.9.4 lib/spree/api/testing_support/setup.rb
solidus_api-2.6.6 lib/spree/api/testing_support/setup.rb
solidus_api-2.7.4 lib/spree/api/testing_support/setup.rb
solidus_api-2.8.5 lib/spree/api/testing_support/setup.rb
solidus_api-2.9.3 lib/spree/api/testing_support/setup.rb
solidus_api-2.9.2 lib/spree/api/testing_support/setup.rb
solidus_api-2.10.0.beta1 lib/spree/api/testing_support/setup.rb
solidus_api-2.7.3 lib/spree/api/testing_support/setup.rb