From 5ff40a751d0e3cf93ade439dfcaaa645ae521583 Mon Sep 17 00:00:00 2001 From: Joey Wendt Date: Fri, 9 May 2014 03:17:55 -0500 Subject: [PATCH] Check and create test repos only when they are needed --- spec/helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/helper.rb b/spec/helper.rb index 56d617aa6..9129e04aa 100644 --- a/spec/helper.rb +++ b/spec/helper.rb @@ -51,8 +51,11 @@ c.define_cassette_placeholder("") 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