From: Markus Doits Date: Sat, 31 Mar 2018 16:58:44 +0000 (+0200) Subject: harden config spec helper X-Git-Tag: v0.1.0~5 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=f411af6f829477af0bdca765eb5cc3d40c104294;p=github%2Ffretlink%2Fpronto-hlint.git harden config spec helper --- 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