Sha256: 8328724e027d6aad709a2d89a972d51418d6db516733db5306b12b4ce3990d82

Contents?: true

Size: 1003 Bytes

Versions: 97

Compression:

Stored size: 1003 Bytes

Contents

require 'rspec/its'
require 'spinach'

require 'timecop'
Timecop.safe_mode = true

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

require 'vcr'
require 'webmock/rspec'
VCR.configure do |config|
  config.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
  config.hook_into :webmock # or :fakeweb
  config.ignore_hosts('codeclimate.com')
end

require 'knapsack_pro'

Dir["#{KnapsackPro.root}/spec/{support,fixtures}/**/*.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(KnapsackPro.root, 'tmp'))
    end
  end

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

Version data entries

97 entries across 97 versions & 1 rubygems

Version Path
knapsack_pro-2.16.0 spec/spec_helper.rb
knapsack_pro-2.15.0 spec/spec_helper.rb
knapsack_pro-2.14.0 spec/spec_helper.rb
knapsack_pro-2.13.0 spec/spec_helper.rb
knapsack_pro-2.12.0 spec/spec_helper.rb
knapsack_pro-2.11.0 spec/spec_helper.rb
knapsack_pro-2.10.1 spec/spec_helper.rb
knapsack_pro-2.10.0 spec/spec_helper.rb
knapsack_pro-2.9.0 spec/spec_helper.rb
knapsack_pro-2.8.0 spec/spec_helper.rb
knapsack_pro-2.7.0 spec/spec_helper.rb
knapsack_pro-2.6.0 spec/spec_helper.rb
knapsack_pro-2.5.0 spec/spec_helper.rb
knapsack_pro-2.4.0 spec/spec_helper.rb
knapsack_pro-2.3.0 spec/spec_helper.rb
knapsack_pro-2.2.1 spec/spec_helper.rb
knapsack_pro-2.2.0 spec/spec_helper.rb
knapsack_pro-2.1.1 spec/spec_helper.rb
knapsack_pro-2.1.0 spec/spec_helper.rb
knapsack_pro-2.0.0 spec/spec_helper.rb