Sha256: acd048a6ff4651bc94d200b56a1aa7bfce0126052ff91620ae5792bce81436f0

Contents?: true

Size: 1.14 KB

Versions: 7

Compression:

Stored size: 1.14 KB

Contents

# frozen_string_literal: true

require 'spec_helper'

# Load rails dummy application
ENV['RAILS_ENV'] = 'test'
require File.expand_path('../dummy/config/environment.rb', __FILE__)

require 'rspec/rails'
require 'capybara/rspec'
require 'webmock/rspec'
require 'shoulda-matchers'
require 'factory_girl_rails'

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

# Checks for pending migration and applies them before tests are run
ActiveRecord::Migration.maintain_test_schema!

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods

  config.use_transactional_fixtures = true

  config.infer_spec_type_from_file_location!

  # The integration tests can be run with:
  # rspec -t type:feature
  # config.filter_run_excluding type: 'feature'

  # Filter lines from Rails gems in backtraces
  # config.filter_rails_from_backtrace!

  # arbitrary gems may also be filtered via:
  # config.filter_gems_from_backtrace('gem name')

  config.after(:suite) { WebMock.disable! }
end

Shoulda::Matchers.configure do |config|
  config.integrate do |with|
    with.test_framework :rspec
    with.library :rails
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
devise_g5_authenticatable-1.0.3 spec/rails_helper.rb
devise_g5_authenticatable-1.0.2.rc.3 spec/rails_helper.rb
devise_g5_authenticatable-1.0.2.rc.2 spec/rails_helper.rb
devise_g5_authenticatable-1.0.2.rc.1 spec/rails_helper.rb
devise_g5_authenticatable-1.0.1.rc.1 spec/rails_helper.rb
devise_g5_authenticatable-1.0.0 spec/rails_helper.rb
devise_g5_authenticatable-1.0.0.pre.1 spec/rails_helper.rb