spec/spec_helper.rb in berkshelf-1.0.0.rc1 vs spec/spec_helper.rb in berkshelf-1.0.0.rc2
- old
+ new
@@ -1,18 +1,19 @@
require 'rubygems'
+
require 'bundler'
require 'spork'
require 'vcr'
Spork.prefork do
- require 'rspec'
- require 'pp'
require 'json_spec'
+ require 'pp'
+ require 'rspec'
require 'webmock/rspec'
-
+
APP_ROOT = File.expand_path('../../', __FILE__)
-
+
Dir[File.join(APP_ROOT, "spec/support/**/*.rb")].each {|f| require f}
VCR.configure do |c|
c.cassette_library_dir = File.join(File.dirname(__FILE__), 'fixtures', 'vcr_cassettes')
c.hook_into :webmock
@@ -20,10 +21,10 @@
RSpec.configure do |config|
config.include Berkshelf::RSpec::FileSystemMatchers
config.include JsonSpec::Helpers
config.include Berkshelf::RSpec::ChefAPI
-
+
config.mock_with :rspec
config.treat_symbols_as_metadata_keys_with_true_values = true
config.filter_run focus: true
config.run_all_when_everything_filtered = true