Sha256: 7a5f35f0664d5905e4546c29ef3a3fda28fa0dc2e631c01874f4bedef126a97d

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

require "codeclimate-test-reporter"
CodeClimate::TestReporter.start

cwd = File.expand_path(File.dirname(__FILE__))
require "#{cwd}/../config/load"
require "#{cwd}/fixtures"
Dir["#{cwd}/support/*.rb"].sort.each do |helper|
  require helper
end
CC::Service.load_services

require "#{cwd}/support/service_context"

# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    # This option will default to `true` in RSpec 4. It makes the `description`
    # and `failure_message` of custom matchers include text for helper methods
    # defined using `chain`, e.g.:
    #     be_bigger_than(2).and_smaller_than(4).description
    #     # => "be bigger than 2 and smaller than 4"
    # ...rather than:
    #     # => "be bigger than 2"
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.mock_with :rspec do |mocks|
    # Prevents you from mocking or stubbing a method that does not exist on
    # a real object. This is generally recommended, and will default to
    # `true` in RSpec 4.
    mocks.verify_partial_doubles = true
  end

  # This setting enables warnings. It's recommended, but in some cases may
  # be too noisy due to issues in dependencies.
  config.warnings = true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codeclimate-services-1.7.0 spec/spec_helper.rb