]> git.immae.eu Git - github/fretlink/pronto-hlint.git/blob - spec/spec_helper.rb
4d1ff71e844417d065f1b5dc2d75e1c8d3f01555
[github/fretlink/pronto-hlint.git] / spec / spec_helper.rb
1 require 'rspec'
2 require 'rspec/its'
3 require 'pronto/eslint'
4
5 RSpec.shared_context 'test repo' do
6 let(:git) { 'spec/fixtures/test.git/git' }
7 let(:dot_git) { 'spec/fixtures/test.git/.git' }
8
9 before { FileUtils.mv(git, dot_git) }
10 let(:repo) { Pronto::Git::Repository.new('spec/fixtures/test.git') }
11 after { FileUtils.mv(dot_git, git) }
12 end
13
14 RSpec.configure do |config|
15 config.expect_with(:rspec) { |c| c.syntax = :should }
16 config.mock_with(:rspec) { |c| c.syntax = :should }
17 end