]> git.immae.eu Git - github/fretlink/pronto-hlint.git/commitdiff
harden config spec helper
authorMarkus Doits <markus.doits@stellenticket.de>
Sat, 31 Mar 2018 16:58:44 +0000 (18:58 +0200)
committerMarkus Doits <markus.doits@stellenticket.de>
Sat, 31 Mar 2018 16:58:44 +0000 (18:58 +0200)
spec/spec_helper.rb

index c05f072713d6495f48745d4385c38e336db9b8f2..e147ea7386a56cf01c27046f97c93ec40fae1bff 100644 (file)
@@ -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