Sha256: c2ce09df5e7b6a38ce1c8e05085d1e0825396b05d08a5b19335051187d255c5a

Contents?: true

Size: 589 Bytes

Versions: 4

Compression:

Stored size: 589 Bytes

Contents

# frozen_string_literal: true
# https://github.com/plataformatec/devise/wiki/How-To:-Test-controllers-with-Rails-3-and-4-(and-RSpec)
RSpec.configure do |config|
  config.with_options(type: :controller) do |c|
    c.include Devise::Test::ControllerHelpers
    c.include ControllerMacros
    c.extend  ControllerMacros
  end

  # For request spec
  # https://github.com/plataformatec/devise/wiki/How-To:-Test-with-Capybara
  # http://qiita.com/gakkie/items/40e5678af7b63afc14df
  config.include Warden::Test::Helpers, type: :request
  config.before :suite do
    Warden.test_mode!
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
model_base_generators-0.3.7 example/spec/support/devise.rb
model_base_generators-0.3.6 example/spec/support/devise.rb
model_base_generators-0.3.5 example/spec/support/devise.rb
model_base_generators-0.3.4 example/spec/support/devise.rb