aboutsummaryrefslogtreecommitdiffhomepage
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorMindaugas Mozūras <mindaugas.mozuras@gmail.com>2016-02-28 17:27:46 +0200
committerMindaugas Mozūras <mindaugas.mozuras@gmail.com>2016-02-28 17:27:46 +0200
commitce89f9ed8a80a06d26b0618658733956d0c98f84 (patch)
tree4594dcd5b47b6469172d79f754cdadcb84660dfa /spec/spec_helper.rb
downloadpronto-hlint-ce89f9ed8a80a06d26b0618658733956d0c98f84.tar.gz
pronto-hlint-ce89f9ed8a80a06d26b0618658733956d0c98f84.tar.zst
pronto-hlint-ce89f9ed8a80a06d26b0618658733956d0c98f84.zip
Initial commit
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb17
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 @@
1require 'rspec'
2require 'rspec/its'
3require 'pronto/eslint'
4
5RSpec.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) }
12end
13
14RSpec.configure do |config|
15 config.expect_with(:rspec) { |c| c.syntax = :should }
16 config.mock_with(:rspec) { |c| c.syntax = :should }
17end