]> git.immae.eu Git - github/fretlink/pronto-hlint.git/blobdiff - spec/spec_helper.rb
harden config spec helper
[github/fretlink/pronto-hlint.git] / 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