mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Fix bundle platform
crash when there's a lockfile with no Ruby locked
49fc54e87d
This commit is contained in:
parent
f6d4d73abd
commit
b87ddd7538
2 changed files with 24 additions and 1 deletions
|
@ -234,6 +234,29 @@ G
|
|||
expect(out).to eq("ruby 1.0.0")
|
||||
end
|
||||
|
||||
it "handles when there is a lockfile with no requirement" do
|
||||
gemfile <<-G
|
||||
source "#{file_uri_for(gem_repo1)}"
|
||||
G
|
||||
|
||||
lockfile <<-L
|
||||
GEM
|
||||
remote: #{file_uri_for(gem_repo1)}/
|
||||
specs:
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
|
||||
BUNDLED WITH
|
||||
#{Bundler::VERSION}
|
||||
L
|
||||
|
||||
bundle "platform --ruby"
|
||||
expect(out).to eq("No ruby version specified")
|
||||
end
|
||||
|
||||
it "handles when there is a requirement in the gemfile" do
|
||||
gemfile <<-G
|
||||
source "#{file_uri_for(gem_repo1)}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue