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:
parent
d0f266460f
commit
1f91009d24
2 changed files with 2 additions and 6 deletions
|
@ -127,9 +127,9 @@ RSpec.describe "bundle install with explicit source paths" do
|
||||||
L
|
L
|
||||||
|
|
||||||
bundle :install, :dir => lib_path("demo")
|
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")
|
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
|
end
|
||||||
|
|
||||||
it "expands paths when comparing locked paths to Gemfile paths" do
|
it "expands paths when comparing locked paths to Gemfile paths" do
|
||||||
|
|
|
@ -208,10 +208,6 @@ module Spec
|
||||||
RSpec::Matchers.define_negated_matcher :not_include_gems, :include_gems
|
RSpec::Matchers.define_negated_matcher :not_include_gems, :include_gems
|
||||||
RSpec::Matchers.alias_matcher :include_gem, :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)
|
def plugin_should_be_installed(*names)
|
||||||
names.each do |name|
|
names.each do |name|
|
||||||
expect(Bundler::Plugin).to be_installed(name)
|
expect(Bundler::Plugin).to be_installed(name)
|
||||||
|
|
Loading…
Add table
Reference in a new issue