Sha256: 55911269393abb4046410eb48f125d0a6b5d85cc676cc9b77d2821a6ad9391cf

Contents?: true

Size: 630 Bytes

Versions: 4

Compression:

Stored size: 630 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|
  [:controller, :view].each do |t|
    config.with_options(type: t) do |c|
      c.include Devise::Test::ControllerHelpers
      c.include ControllerMacros
      c.extend  ControllerMacros
    end
  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 3 versions & 1 rubygems

Version Path
model_base_generators-0.4.0 examples/rails-5.0/spec/support/devise.rb
model_base_generators-0.4.0 examples/rails-5.1/spec/support/devise.rb
model_base_generators-0.3.9 example/spec/support/devise.rb
model_base_generators-0.3.8 example/spec/support/devise.rb