From f411af6f829477af0bdca765eb5cc3d40c104294 Mon Sep 17 00:00:00 2001 From: Markus Doits Date: Sat, 31 Mar 2018 18:58:44 +0200 Subject: harden config spec helper --- spec/spec_helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c05f072..e147ea7 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -21,5 +21,8 @@ RSpec.shared_context 'with config', config: true do before(:each) do allow_any_instance_of(Pronto::ESLintNpm).to receive(:config_options).and_return(requested_config) + + # make sure the config is actually read in the example + expect_any_instance_of(Pronto::ESLintNpm).to receive(:read_config).and_call_original end end -- cgit v1.2.3