]>
git.immae.eu Git - github/fretlink/pronto-hlint.git/blob - spec/spec_helper.rb
4d1ff71e844417d065f1b5dc2d75e1c8d3f01555
3 require 'pronto/eslint'
5 RSpec
.shared_context
'test repo' do
6 let(:git) { 'spec/fixtures/test.git/git' }
7 let(:dot_git) { 'spec/fixtures/test.git/.git' }
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
) }
14 RSpec
.configure
do |config
|
15 config
.expect_with(:rspec) { |c
| c
.syntax
= :should }
16 config
.mock_with(:rspec) { |c
| c
.syntax
= :should }