Skip to content

Commit

Permalink
Remove have_lockfile matcher too
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Nov 11, 2021
1 parent ece3c86 commit 635f3f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bundler/spec/install/gemfile/path_spec.rb
Expand Up @@ -127,9 +127,9 @@
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
Expand Down
4 changes: 0 additions & 4 deletions bundler/spec/support/matchers.rb
Expand Up @@ -208,10 +208,6 @@ def indent(string, padding = 4, indent_character = " ")
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)
Expand Down

0 comments on commit 635f3f2

Please sign in to comment.