From 9c1df04756bd900c1ab61e98526ad6eaac8a7216 Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Sat, 13 Apr 2019 16:38:04 +0200 Subject: 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. --- spec/spec_helper.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'spec/spec_helper.rb') 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 @@ # frozen_string_literal: true require 'fileutils' -require 'byebug' require 'rspec' -require 'pronto/eslint_npm' +require 'pronto/hlint' -%w[test eslintignore].each do |repo_name| +%w[test].each do |repo_name| RSpec.shared_context "#{repo_name} repo" do let(:git) { "spec/fixtures/#{repo_name}.git/git" } let(:dot_git) { "spec/fixtures/#{repo_name}.git/.git" } @@ -20,9 +19,9 @@ RSpec.shared_context 'with config', config: true do requested_config = metadata[:config] before(:each) do - allow_any_instance_of(Pronto::ESLintNpm).to receive(:config_options).and_return(requested_config) + allow_any_instance_of(Pronto::Hlint::Runner).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 + expect_any_instance_of(Pronto::Hlint::Runner).to receive(:read_config).and_call_original end end -- cgit v1.2.3