diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-06-25 16:50:20 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:57 +0900 |
commit | cef81eb8ccb38deaf5d0bd3c5d6c5fdbcc920d38 (patch) | |
tree | dba188772d36b36b4634d7729f2e3bf5af9c77dc /spec/bundler/install | |
parent | b2baf6bb0223bb52f9e5f861f860c61c3b6a5df1 (diff) | |
download | ruby-cef81eb8ccb38deaf5d0bd3c5d6c5fdbcc920d38.tar.gz |
[bundler/bundler] Make some specs more explicit
https://github.com/bundler/bundler/commit/5e08e849ec
Diffstat (limited to 'spec/bundler/install')
-rw-r--r-- | spec/bundler/install/gemfile/gemspec_spec.rb | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/spec/bundler/install/gemfile/gemspec_spec.rb b/spec/bundler/install/gemfile/gemspec_spec.rb index ecb8358ccc..c50f8c9668 100644 --- a/spec/bundler/install/gemfile/gemspec_spec.rb +++ b/spec/bundler/install/gemfile/gemspec_spec.rb @@ -331,24 +331,12 @@ RSpec.describe "bundle install from an existing gemspec" do context "previously bundled for Ruby" do let(:platform) { "ruby" } - let(:explicit_platform) { false } before do build_lib("foo", :path => tmp.join("foo")) do |s| s.add_dependency "rack", "=1.0.0" 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 source "#{source_uri}" gemspec :path => "../foo" @@ -379,7 +367,17 @@ RSpec.describe "bundle install from an existing gemspec" do context "using JRuby with explicit platform" do 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 simulate_ruby_engine "jruby" do |