]> git.immae.eu Git - github/fretlink/pronto-hlint.git/blob - spec/spec_helper.rb
correct name according to recommended use of `_` and `-`
[github/fretlink/pronto-hlint.git] / spec / spec_helper.rb
1 require 'rspec'
2 require 'rspec/its'
3 require 'pronto/eslint_npm'
4
5 %w(test eslintignore).each do |repo_name|
6 RSpec.shared_context "#{repo_name} repo" do
7 let(:git) { "spec/fixtures/#{repo_name}.git/git" }
8 let(:dot_git) { "spec/fixtures/#{repo_name}.git/.git" }
9
10 before { FileUtils.mv(git, dot_git) }
11 let(:repo) { Pronto::Git::Repository.new("spec/fixtures/#{repo_name}.git") }
12 after { FileUtils.mv(dot_git, git) }
13 end
14 end
15
16 RSpec.configure do |config|
17 config.expect_with(:rspec) { |c| c.syntax = :should }
18 config.mock_with(:rspec) { |c| c.syntax = :should }
19 end