Sha256: 314a854c7d41ab4e14022e685fc9273af798a81e837a87900093b16577af5a45

Contents?: true

Size: 726 Bytes

Versions: 18

Compression:

Stored size: 726 Bytes

Contents

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

18 entries across 18 versions & 1 rubygems

Version Path
knapsack-1.4.0 spec/spec_helper.rb
knapsack-1.3.4 spec/spec_helper.rb
knapsack-1.3.3 spec/spec_helper.rb
knapsack-1.3.1 spec/spec_helper.rb
knapsack-1.3.0 spec/spec_helper.rb
knapsack-1.2.1 spec/spec_helper.rb
knapsack-1.2.0 spec/spec_helper.rb
knapsack-1.1.1 spec/spec_helper.rb
knapsack-1.1.0 spec/spec_helper.rb
knapsack-1.0.4 spec/spec_helper.rb
knapsack-1.0.3 spec/spec_helper.rb
knapsack-1.0.2 spec/spec_helper.rb
knapsack-1.0.1 spec/spec_helper.rb
knapsack-1.0.0 spec/spec_helper.rb
knapsack-0.5.0 spec/spec_helper.rb
knapsack-0.4.0 spec/spec_helper.rb
knapsack-0.3.0 spec/spec_helper.rb
knapsack-0.2.0 spec/spec_helper.rb