spec/spec_helper.rb in knapsack_pro-7.1.0 vs spec/spec_helper.rb in knapsack_pro-7.6.0

- old
+ new

@@ -38,6 +38,10 @@ config.after(:each) do if RSpec.current_example.metadata[:clear_tmp] FileUtils.rm_r(KNAPSACK_PRO_TMP_DIR) if File.exist?(KNAPSACK_PRO_TMP_DIR) end end + + config.before(:each) do + allow_any_instance_of(KnapsackPro::Client::Connection).to receive(:net_http).and_return(Net::HTTP) + end end