mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
529a9e8a1f
commit
61b6f53337
Notes:
git
2020-06-18 19:15:18 +09:00
61 changed files with 378 additions and 390 deletions
|
@ -36,14 +36,14 @@ RSpec.describe "bundle inject", :bundler => "< 3" do
|
|||
|
||||
context "with injected gems already in the Gemfile" do
|
||||
it "doesn't add existing gems" do
|
||||
bundle "inject 'rack' '> 0'"
|
||||
bundle "inject 'rack' '> 0'", :raise_on_error => false
|
||||
expect(err).to match(/cannot specify the same gem twice/i)
|
||||
end
|
||||
end
|
||||
|
||||
context "incorrect arguments" do
|
||||
it "fails when more than 2 arguments are passed" do
|
||||
bundle "inject gem_name 1 v"
|
||||
bundle "inject gem_name 1 v", :raise_on_error => false
|
||||
expect(err).to eq(<<-E.strip)
|
||||
ERROR: "bundle inject" was called with arguments ["gem_name", "1", "v"]
|
||||
Usage: "bundle inject GEM VERSION"
|
||||
|
@ -108,7 +108,7 @@ Usage: "bundle inject GEM VERSION"
|
|||
source "#{file_uri_for(gem_repo1)}"
|
||||
gem "rack-obama"
|
||||
G
|
||||
bundle "inject 'rack' '> 0'"
|
||||
bundle "inject 'rack' '> 0'", :raise_on_error => false
|
||||
expect(err).to match(/trying to install in deployment mode after changing/)
|
||||
|
||||
expect(bundled_app_lock.read).not_to match(/rack-obama/)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue