Sha256: 92283280e26d746d2adaba19f4c811dcfbe1d10d9f91ab1e761e7ce2c7a530d7

Contents?: true

Size: 765 Bytes

Versions: 21

Compression:

Stored size: 765 Bytes

Contents

require 'rspec/its'
require 'spinach'

require 'timecop'
Timecop.safe_mode = true

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

require 'knapsack'

Dir["#{Knapsack.root}/spec/support/**/*.rb"].each { |f| require f }

RSpec.configure do |config|
  config.order = :random
  config.mock_with :rspec do |mocks|
    mocks.syntax = :expect
    mocks.verify_partial_doubles = true
  end

  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  config.before(:each) do
    if RSpec.current_example.metadata[:clear_tmp]
      FileUtils.mkdir_p(File.join(Knapsack.root, 'tmp'))
    end
  end

  config.after(:each) do
    if RSpec.current_example.metadata[:clear_tmp]
      FileUtils.rm_r(File.join(Knapsack.root, 'tmp'))
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
knapsack-1.22.0 spec/spec_helper.rb
knapsack-1.21.1 spec/spec_helper.rb
knapsack-1.21.0 spec/spec_helper.rb
knapsack-1.20.0 spec/spec_helper.rb
knapsack-1.19.0 spec/spec_helper.rb
knapsack-1.18.0 spec/spec_helper.rb
knapsack-1.17.2 spec/spec_helper.rb
knapsack-1.17.1 spec/spec_helper.rb
knapsack-1.17.0 spec/spec_helper.rb
knapsack-1.16.0 spec/spec_helper.rb
knapsack-1.15.0 spec/spec_helper.rb
knapsack-1.14.1 spec/spec_helper.rb
knapsack-1.14.0 spec/spec_helper.rb
knapsack-1.13.3 spec/spec_helper.rb
knapsack-1.13.2 spec/spec_helper.rb
knapsack-1.13.1 spec/spec_helper.rb
knapsack-1.13.0 spec/spec_helper.rb
knapsack-1.12.2 spec/spec_helper.rb
knapsack-1.12.1 spec/spec_helper.rb
knapsack-1.12.0 spec/spec_helper.rb