diff options
-rw-r--r-- | spec/support/builders.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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? |