Sha256: 52694e74d82af2386af2acd630f4d2980f3b61a46b6e985af58f05f6afb10c6d

Contents?: true

Size: 1.61 KB

Versions: 4

Compression:

Stored size: 1.61 KB

Contents

# frozen_string_literal: true

# Bundler setup
require 'bundler'
Bundler.require :rails, :test

# Coverage
require 'coveralls'
Coveralls.wear! do
  add_filter 'spec'
end

ENV['RAILS_ENV'] ||= 'test'
ENV['RAILS_GROUPS'] = ['rails', ENV['RAILS_GROUPS']].reject(&:nil?).join(',')
require File.expand_path('dummy/config/environment', __dir__)
require 'rspec/rails'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.expand_path('support/**/*.rb', __dir__)].sort.each {|f| require f }

# Checks for pending migrations before tests are run.
# If you are not using ActiveRecord, you can remove this line.
if defined?(ActiveRecord::Migration) && Rails::VERSION::MAJOR >= 4
  ActiveRecord::Migration.check_pending!
end

RSpec.configure do |config|
  # If you're not using ActiveRecord, or you'd prefer not to run each of your
  # examples within a transaction, remove the following line or assign false
  # instead of true.
  config.use_transactional_fixtures = true

  # If true, the base class of anonymous controllers will be inferred
  # automatically. This will be the default behavior in future versions of
  # rspec-rails.
  config.infer_base_class_for_anonymous_controllers = false

  # Run specs in random order to surface order dependencies. If you find an
  # order dependency and want to debug it, you can fix the order by providing
  # the seed, which is printed after each run.
  #     --seed 1234
  config.order = 'random'

  config.expect_with :rspec do |c|
    # Only allow expect syntax
    c.syntax = :expect
  end

  config.before do
    Msgr.logger = false
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
msgr-1.4.0 spec/integration/spec_helper.rb
msgr-1.3.2 spec/integration/spec_helper.rb
msgr-1.3.1 spec/integration/spec_helper.rb
msgr-1.3.0 spec/integration/spec_helper.rb