diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-01-11 13:50:21 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-01-12 16:31:06 +0100 |
commit | d4b6a4164ac7fac1de4c352a04e80dfd8b3a601a (patch) | |
tree | f595fa91f100d8c26bcc5dd3cf69b2c21287dc2c /spec/support | |
parent | 2c26c8c2f3b2d8c68c2170ba06193b1d13847738 (diff) | |
download | bundler-d4b6a4164ac7fac1de4c352a04e80dfd8b3a601a.tar.gz |
Extract `bundled_app_gemfile` 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 37461901fc..87f1326448 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -218,7 +218,7 @@ module Spec end def gemfile_should_be(expected) - expect(bundled_app("Gemfile")).to read_as(strip_whitespace(expected)) + expect(bundled_app_gemfile).to read_as(strip_whitespace(expected)) end end end diff --git a/spec/support/path.rb b/spec/support/path.rb index 7d3c96ea02..3de269d91a 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_gemfile + bundled_app("Gemfile") + end + def bundled_app_lock bundled_app("Gemfile.lock") end |