diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-26 11:34:59 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-01-12 13:58:00 +0100 |
commit | 2c26c8c2f3b2d8c68c2170ba06193b1d13847738 (patch) | |
tree | d616397cf09f978705fdfc37d1950407431065e5 /spec/support | |
parent | 971d39b32d3ec8bfcdc951061c88e364f864423e (diff) | |
download | bundler-2c26c8c2f3b2d8c68c2170ba06193b1d13847738.tar.gz |
Extract `bundled_app_lock` path helper
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/matchers.rb | 2 | ||||
-rw-r--r-- | spec/support/path.rb | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb index df35854c2f..37461901fc 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -214,7 +214,7 @@ module Spec end def lockfile_should_be(expected) - expect(bundled_app("Gemfile.lock")).to have_lockfile(expected) + expect(bundled_app_lock).to have_lockfile(expected) end def gemfile_should_be(expected) diff --git a/spec/support/path.rb b/spec/support/path.rb index 0c80fe5551..7d3c96ea02 100644 --- a/spec/support/path.rb +++ b/spec/support/path.rb @@ -96,6 +96,10 @@ module Spec bundled_app("vendor/cache/#{path}.gem") end + def bundled_app_lock + bundled_app("Gemfile.lock") + end + def base_system_gems tmp.join("gems/base") end |