mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[bundler/bundler] Make some specs more explicit
https://github.com/bundler/bundler/commit/5e08e849ec
This commit is contained in:
parent
b2baf6bb02
commit
cef81eb8cc
1 changed files with 11 additions and 13 deletions
|
@ -331,24 +331,12 @@ RSpec.describe "bundle install from an existing gemspec" do
|
||||||
|
|
||||||
context "previously bundled for Ruby" do
|
context "previously bundled for Ruby" do
|
||||||
let(:platform) { "ruby" }
|
let(:platform) { "ruby" }
|
||||||
let(:explicit_platform) { false }
|
|
||||||
|
|
||||||
before do
|
before do
|
||||||
build_lib("foo", :path => tmp.join("foo")) do |s|
|
build_lib("foo", :path => tmp.join("foo")) do |s|
|
||||||
s.add_dependency "rack", "=1.0.0"
|
s.add_dependency "rack", "=1.0.0"
|
||||||
end
|
end
|
||||||
|
|
||||||
if explicit_platform
|
|
||||||
create_file(
|
|
||||||
tmp.join("foo", "foo-#{platform}.gemspec"),
|
|
||||||
build_spec("foo", "1.0", platform) do
|
|
||||||
dep "rack", "=1.0.0"
|
|
||||||
@spec.authors = "authors"
|
|
||||||
@spec.summary = "summary"
|
|
||||||
end.first.to_ruby
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
gemfile <<-G
|
gemfile <<-G
|
||||||
source "#{source_uri}"
|
source "#{source_uri}"
|
||||||
gemspec :path => "../foo"
|
gemspec :path => "../foo"
|
||||||
|
@ -379,7 +367,17 @@ RSpec.describe "bundle install from an existing gemspec" do
|
||||||
|
|
||||||
context "using JRuby with explicit platform" do
|
context "using JRuby with explicit platform" do
|
||||||
let(:platform) { "java" }
|
let(:platform) { "java" }
|
||||||
let(:explicit_platform) { true }
|
|
||||||
|
before do
|
||||||
|
create_file(
|
||||||
|
tmp.join("foo", "foo-#{platform}.gemspec"),
|
||||||
|
build_spec("foo", "1.0", platform) do
|
||||||
|
dep "rack", "=1.0.0"
|
||||||
|
@spec.authors = "authors"
|
||||||
|
@spec.summary = "summary"
|
||||||
|
end.first.to_ruby
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
it "should install" do
|
it "should install" do
|
||||||
simulate_ruby_engine "jruby" do
|
simulate_ruby_engine "jruby" do
|
||||||
|
|
Loading…
Add table
Reference in a new issue