aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarkus Doits <markus.doits@stellenticket.de>2018-03-31 18:58:44 +0200
committerMarkus Doits <markus.doits@stellenticket.de>2018-03-31 18:58:44 +0200
commitf411af6f829477af0bdca765eb5cc3d40c104294 (patch)
tree10809c17f507b4297c68dbcd7fbfbc05b62e99b6
parent016e77289de983d0e7e46ac38aa4a84448388f41 (diff)
downloadpronto-hlint-f411af6f829477af0bdca765eb5cc3d40c104294.tar.gz
pronto-hlint-f411af6f829477af0bdca765eb5cc3d40c104294.tar.zst
pronto-hlint-f411af6f829477af0bdca765eb5cc3d40c104294.zip
harden config spec helper
-rw-r--r--spec/spec_helper.rb3
1 files changed, 3 insertions, 0 deletions
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
21 21
22 before(:each) do 22 before(:each) do
23 allow_any_instance_of(Pronto::ESLintNpm).to receive(:config_options).and_return(requested_config) 23 allow_any_instance_of(Pronto::ESLintNpm).to receive(:config_options).and_return(requested_config)
24
25 # make sure the config is actually read in the example
26 expect_any_instance_of(Pronto::ESLintNpm).to receive(:read_config).and_call_original
24 end 27 end
25end 28end