Sha256: c9d6a00fad6db5ffecb14408b34d7916c8ac1d0b4f3796c8b99bdfcb5554e2f8
Contents?: true
Size: 696 Bytes
Versions: 4
Compression:
Stored size: 696 Bytes
Contents
require 'rspec/its' require 'spinach' require 'timecop' Timecop.safe_mode = true 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
knapsack-4.0.0 | spec/spec_helper.rb |
knapsack-3.1.0 | spec/spec_helper.rb |
knapsack-3.0.0 | spec/spec_helper.rb |
knapsack-2.0.0 | spec/spec_helper.rb |