Sha256: c739b1adecdf291c777f229d91ff984be5faf86e6ee57c89527c124dfa01ce10

Contents?: true

Size: 796 Bytes

Versions: 2

Compression:

Stored size: 796 Bytes

Contents

require "bundler/setup"

Bundler.require(:default, :test)

require (Pathname.new(__FILE__).dirname + "../lib/potassium").expand_path

Dir["./spec/support/**/*.rb"].each { |file| require file }

RSpec.configure do |config|
  config.include PotassiumTestHelpers

  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.disable_monkey_patching!

  config.before(:all) do
    add_fakes_to_path
    create_tmp_directory
  end

  config.after(:each) do
    docker_cleanup
  end

  config.before(:each) do
    FakeGithub.clear!
    FakeHeroku.clear!
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
potassium-6.0.0 spec/spec_helper.rb
potassium-5.2.3 spec/spec_helper.rb