diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2019-04-13 16:38:04 +0200 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2019-04-13 16:38:04 +0200 |
commit | 9c1df04756bd900c1ab61e98526ad6eaac8a7216 (patch) | |
tree | cf4048303525aa090d00d7a4a2977377cb6a99d1 /spec/spec_helper.rb | |
parent | 83414e23d7f03a7a939655f51b81c0792fff616a (diff) | |
download | pronto-hlint-9c1df04756bd900c1ab61e98526ad6eaac8a7216.tar.gz pronto-hlint-9c1df04756bd900c1ab61e98526ad6eaac8a7216.tar.zst pronto-hlint-9c1df04756bd900c1ab61e98526ad6eaac8a7216.zip |
Welcom pronto-hlint! This is a whole rewrite of pronto-eslint_npm.
Forking the pronto-eslint_npm repository to build a runner for hlint
haskell linter.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 9 |
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 | ||
3 | require 'fileutils' | 3 | require 'fileutils' |
4 | require 'byebug' | ||
5 | require 'rspec' | 4 | require 'rspec' |
6 | require 'pronto/eslint_npm' | 5 | require '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 |
28 | end | 27 | end |