1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Remove have_lockfile matcher too

https://github.com/rubygems/rubygems/commit/635f3f2605
This commit is contained in:
David Rodríguez 2021-11-11 20:26:21 +01:00 committed by git
parent d0f266460f
commit 1f91009d24
2 changed files with 2 additions and 6 deletions

View file

@ -127,9 +127,9 @@ RSpec.describe "bundle install with explicit source paths" do
L
bundle :install, :dir => lib_path("demo")
expect(lib_path("demo/Gemfile.lock")).to have_lockfile(lockfile)
expect(lib_path("demo/Gemfile.lock")).to read_as(lockfile)
bundle :update, :all => true, :dir => lib_path("demo")
expect(lib_path("demo/Gemfile.lock")).to have_lockfile(lockfile)
expect(lib_path("demo/Gemfile.lock")).to read_as(lockfile)
end
it "expands paths when comparing locked paths to Gemfile paths" do

View file

@ -208,10 +208,6 @@ module Spec
RSpec::Matchers.define_negated_matcher :not_include_gems, :include_gems
RSpec::Matchers.alias_matcher :include_gem, :include_gems
def have_lockfile(expected)
read_as(strip_whitespace(expected))
end
def plugin_should_be_installed(*names)
names.each do |name|
expect(Bundler::Plugin).to be_installed(name)