Sha256: fa336d104bc0c50df5f56db26cc22f2b3bf65575c2b84e21d431a0ead6349736

Contents?: true

Size: 984 Bytes

Versions: 13

Compression:

Stored size: 984 Bytes

Contents

require 'rspec/its'

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

13 entries across 13 versions & 1 rubygems

Version Path
knapsack_pro-0.7.2 spec/spec_helper.rb
knapsack_pro-0.7.1 spec/spec_helper.rb
knapsack_pro-0.7.0 spec/spec_helper.rb
knapsack_pro-0.6.1 spec/spec_helper.rb
knapsack_pro-0.6.0 spec/spec_helper.rb
knapsack_pro-0.5.0 spec/spec_helper.rb
knapsack_pro-0.4.0 spec/spec_helper.rb
knapsack_pro-0.3.0 spec/spec_helper.rb
knapsack_pro-0.2.1 spec/spec_helper.rb
knapsack_pro-0.2.0 spec/spec_helper.rb
knapsack_pro-0.1.2 spec/spec_helper.rb
knapsack_pro-0.1.1 spec/spec_helper.rb
knapsack_pro-0.1.0 spec/spec_helper.rb