Sha256: 1b6e64344a5f2f0f0aa3dbbd7b20ae68714bdd3586892cd56d3c01865a4d669c

Contents?: true

Size: 880 Bytes

Versions: 6

Compression:

Stored size: 880 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

6 entries across 6 versions & 1 rubygems

Version Path
cookbook-omnifetch-0.8.0 spec/spec_helper.rb
cookbook-omnifetch-0.7.0 spec/spec_helper.rb
cookbook-omnifetch-0.6.0 spec/spec_helper.rb
cookbook-omnifetch-0.5.1 spec/spec_helper.rb
cookbook-omnifetch-0.5.0 spec/spec_helper.rb
cookbook-omnifetch-0.4.0 spec/spec_helper.rb