Sha256: fd70d14188acfe68677943f9d816e6626937184960069c1f7c40c450c434b5db
Contents?: true
Size: 1.26 KB
Versions: 6
Compression:
Stored size: 1.26 KB
Contents
require 'rubygems' require 'bundler' require 'chozo' def setup_rspec require 'rspec' require 'json_spec' require 'webmock/rspec' Dir[File.join(File.expand_path("../../spec/support/**/*.rb", __FILE__))].each { |f| require f } RSpec.configure do |config| config.include Ridley::SpecHelpers config.include Ridley::RSpec::ChefServer config.include JsonSpec::Helpers 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 config.before(:all) do Celluloid.logger = nil Ridley.logger = nil WebMock.disable_net_connect!(allow_localhost: true, net_http_connect_on_start: true) Ridley::RSpec::ChefServer.start end config.after(:all) do Ridley::RSpec::ChefServer.stop end config.before(:each) do Celluloid.shutdown Celluloid.boot clean_tmp_path Ridley::RSpec::ChefServer.server.clear_data end config.after(:each) do Ridley::RSpec::ChefServer.server.clear_data end end end if mri? && ENV['CI'] != 'true' require 'spork' Spork.prefork do setup_rspec end Spork.each_run do require 'ridley' end else require 'ridley' setup_rspec end
Version data entries
6 entries across 6 versions & 1 rubygems