aboutsummaryrefslogtreecommitdiffhomepage
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index e147ea7..656e116 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,11 +1,10 @@
1# frozen_string_literal: true 1# frozen_string_literal: true
2 2
3require 'fileutils' 3require 'fileutils'
4require 'byebug'
5require 'rspec' 4require 'rspec'
6require 'pronto/eslint_npm' 5require 'pronto/hlint'
7 6
8%w[test eslintignore].each do |repo_name| 7%w[test].each do |repo_name|
9 RSpec.shared_context "#{repo_name} repo" do 8 RSpec.shared_context "#{repo_name} repo" do
10 let(:git) { "spec/fixtures/#{repo_name}.git/git" } 9 let(:git) { "spec/fixtures/#{repo_name}.git/git" }
11 let(:dot_git) { "spec/fixtures/#{repo_name}.git/.git" } 10 let(:dot_git) { "spec/fixtures/#{repo_name}.git/.git" }
@@ -20,9 +19,9 @@ RSpec.shared_context 'with config', config: true do
20 requested_config = metadata[:config] 19 requested_config = metadata[:config]
21 20
22 before(:each) do 21 before(:each) do
23 allow_any_instance_of(Pronto::ESLintNpm).to receive(:config_options).and_return(requested_config) 22 allow_any_instance_of(Pronto::Hlint::Runner).to receive(:config_options).and_return(requested_config)
24 23
25 # make sure the config is actually read in the example 24 # make sure the config is actually read in the example
26 expect_any_instance_of(Pronto::ESLintNpm).to receive(:read_config).and_call_original 25 expect_any_instance_of(Pronto::Hlint::Runner).to receive(:read_config).and_call_original
27 end 26 end
28end 27end