diff options
author | Mindaugas Mozūras <mindaugas.mozuras@gmail.com> | 2016-02-28 17:27:46 +0200 |
---|---|---|
committer | Mindaugas Mozūras <mindaugas.mozuras@gmail.com> | 2016-02-28 17:27:46 +0200 |
commit | ce89f9ed8a80a06d26b0618658733956d0c98f84 (patch) | |
tree | 4594dcd5b47b6469172d79f754cdadcb84660dfa /spec | |
download | pronto-hlint-ce89f9ed8a80a06d26b0618658733956d0c98f84.tar.gz pronto-hlint-ce89f9ed8a80a06d26b0618658733956d0c98f84.tar.zst pronto-hlint-ce89f9ed8a80a06d26b0618658733956d0c98f84.zip |
Initial commit
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec_helper.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..4d1ff71 --- /dev/null +++ b/spec/spec_helper.rb | |||
@@ -0,0 +1,17 @@ | |||
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 | ||