Sha256: ea4c2655db3c3bda61f239b66aae4e79530045474037433a8498c33cf84d3d06

Contents?: true

Size: 1.62 KB

Versions: 6

Compression:

Stored size: 1.62 KB

Contents

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

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

#
ENV['RAILS_ENV'] ||= 'test'
ENV['RAILS_GROUPS'] = ENV['RAILS_GROUPS'] ? "rails,#{ENV['RAILS_GROUPS']}" : 'rails'
require File.expand_path('../dummy/config/environment', __FILE__)
require 'rspec/rails'
require 'rspec/autorun'

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

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

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

6 entries across 6 versions & 1 rubygems

Version Path
msgr-0.14.1.1.b112 spec/integration/spec_helper.rb
msgr-0.14.1.1.b111 spec/integration/spec_helper.rb
msgr-0.14.1.1.b110 spec/integration/spec_helper.rb
msgr-0.14.1 spec/integration/spec_helper.rb
msgr-0.14.0 spec/integration/spec_helper.rb
msgr-0.13.0 spec/integration/spec_helper.rb