Sha256: dee71a78565539307d21224a7e474883b45a3bbaf7c284bf244d9bb6c062ef54

Contents?: true

Size: 1.58 KB

Versions: 24

Compression:

Stored size: 1.58 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
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
msgr-0.12.3 spec/integration/spec_helper.rb
msgr-0.12.2 spec/integration/spec_helper.rb
msgr-0.12.1 spec/integration/spec_helper.rb
msgr-0.12.0 spec/integration/spec_helper.rb
msgr-0.11.1 spec/integration/spec_helper.rb
msgr-0.11.0 spec/integration/spec_helper.rb
msgr-0.11.0.rc3 spec/integration/spec_helper.rb
msgr-0.11.0.rc2 spec/integration/spec_helper.rb
msgr-0.11.0.rc1 spec/integration/spec_helper.rb
msgr-0.10.2 spec/integration/spec_helper.rb
msgr-0.10.1 spec/integration/spec_helper.rb
msgr-0.10.0 spec/integration/spec_helper.rb
msgr-0.9.0 spec/integration/spec_helper.rb
msgr-0.8.0 spec/integration/spec_helper.rb
msgr-0.7.0 spec/integration/spec_helper.rb
msgr-0.6.0 spec/integration/spec_helper.rb
msgr-0.5.0 spec/integration/spec_helper.rb
msgr-0.4.1 spec/integration/spec_helper.rb
msgr-0.4.0 spec/integration/spec_helper.rb
msgr-0.3.0 spec/integration/spec_helper.rb