Sha256: 5fa6fcaa0c323ffdf224899d0eef66388566c64772ed62cb28293183d4b95c13

Contents?: true

Size: 433 Bytes

Versions: 18

Compression:

Stored size: 433 Bytes

Contents

if defined?(Warden)
  include Warden::Test::Helpers
  Warden.test_mode!
end

if defined?(Devise)
  RSpec.configure do |config|
    config.before(:each, type: :controller) do
      @request.env['devise.mapping'] = Devise.mappings[:spree_user]
    end

    config.include Devise::Test::ControllerHelpers, type: :controller

    config.include Warden::Test::Helpers
    config.before :suite do
      Warden.test_mode!
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
spree_dev_tools-0.2.4 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.2.3 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.2.2 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.2.1 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.2.0 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.1.12 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.1.11 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.1.10 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.1.9 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.1.8 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.1.7 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.1.5 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.1.4 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.1.3 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.1.2 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.1.1 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.1.0 lib/spree_dev_tools/rspec/support/devise.rb
spree_dev_tools-0.0.9 lib/spree_dev_tools/rspec/support/devise.rb