Sha256: 0e1a7182b66c45fef7bbfe346b6f7cd564374b6f8590a4a0e66fdc4582c94d13

Contents?: true

Size: 944 Bytes

Versions: 2

Compression:

Stored size: 944 Bytes

Contents

require 'simplecov'
require 'coveralls'
SimpleCov.formatters = [
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
SimpleCov.start { add_filter '/spec/' }

require 'dotenv'
Dotenv.load

require 'lita-wtf'

require 'lita/rspec'

Lita.version_3_compatibility_mode = false

RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end

  config.filter_run :focus
  config.run_all_when_everything_filtered = true
  config.default_formatter = 'doc' if config.files_to_run.one?
  config.order = :random

  Kernel.srand config.seed
end

def grab_request(method, status, body)
  response = double('Faraday::Response', status: status, body: body)
  allow_any_instance_of(Faraday::Connection).to receive(method.to_sym)
    .and_return(response)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lita-wtf-1.3.0 spec/spec_helper.rb
lita-wtf-1.1.0 spec/spec_helper.rb