Skip to content

Commit

Permalink
Check and create test repos only when they are needed
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyw committed May 9, 2014
1 parent 56506fa commit 5ff40a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@
c.define_cassette_placeholder("<GITHUB_TEST_ORG_TEAM_ID>") do
"10050505050000"
end

c.before_http_request(:real?) do |request|
next if request.headers['X-Vcr-Test-Repo-Setup']
next unless request.uri.include? test_github_repository

options = {
:headers => {'X-Vcr-Test-Repo-Setup' => 'true'},
:auto_init => true
Expand Down

0 comments on commit 5ff40a7

Please sign in to comment.