Sha256: 3a327eaf96623bce075d89ea6e6ce9643fd0e0b5e32d8079bb71a49e6eab39ea
Contents?: true
Size: 299 Bytes
Versions: 17
Compression:
Stored size: 299 Bytes
Contents
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
17 entries across 17 versions & 1 rubygems