Sha256: f484849c69a27b3eda9b45881ab2c571365043f00ea026ed308d4852abd01b9e

Contents?: true

Size: 881 Bytes

Versions: 5

Compression:

Stored size: 881 Bytes

Contents

require 'cookbook-omnifetch'

module Fixtures

  def fixtures_path
    spec_root.join('fixtures')
  end

  def spec_root
    Pathname.new(File.expand_path(File.dirname(__FILE__)))
  end

end

module MockShellOut; end
module MockCachedCookbook; end

RSpec.configure do |config|

  config.raise_errors_for_deprecations!

  config.include Fixtures

  config.expect_with :rspec do |c|
    c.syntax = [:expect]
  end
  config.mock_with :rspec do |c|
    c.syntax = [:expect, :should]
  end

  config.filter_run :focus => true

  config.run_all_when_everything_filtered = true

  config.before(:suite) do
    CookbookOmnifetch.configure do |c|
      c.cache_path = File.expand_path('~/.berkshelf')
      c.storage_path = Pathname.new(File.expand_path('~/.berkshelf/cookbooks'))
      c.shell_out_class = MockShellOut
      c.cached_cookbook_class = MockCachedCookbook
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cookbook-omnifetch-0.2.3 spec/spec_helper.rb
cookbook-omnifetch-0.2.2 spec/spec_helper.rb
cookbook-omnifetch-0.2.1 spec/spec_helper.rb
cookbook-omnifetch-0.2.0 spec/spec_helper.rb
cookbook-omnifetch-0.1.0 spec/spec_helper.rb