From 2c552dcc4d17dfdce49a63df4f59787255448d4a Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Mon, 11 Jul 2016 09:47:05 -0400 Subject: Fix ruby < 2.0 spec compatibility --- spec/support/builders.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/builders.rb b/spec/support/builders.rb index 891c785253..00024db7cf 100644 --- a/spec/support/builders.rb +++ b/spec/support/builders.rb @@ -368,7 +368,7 @@ module Spec end def update_repo(path) - if path == gem_repo1 && caller_locations.first.label != "build_repo" + if path == gem_repo1 && caller.first.split(" ").last == "`build_repo`" raise "Updating gem_repo1 is unsupported -- use gem_repo2 instead" end return unless block_given? -- cgit v1.2.1