ruby-changes:55334
From: hsbt <ko1@a...>
Date: Sun, 14 Apr 2019 15:05:31 +0900 (JST)
Subject: [ruby-changes:55334] hsbt:r67542 (trunk): Enabled to some bundler examples again.
hsbt 2019-04-14 15:05:27 +0900 (Sun, 14 Apr 2019) New Revision: 67542 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67542 Log: Enabled to some bundler examples again. Modified files: trunk/spec/bundler/commands/binstubs_spec.rb trunk/spec/bundler/commands/exec_spec.rb trunk/spec/bundler/install/deploy_spec.rb trunk/spec/bundler/other/major_deprecation_spec.rb trunk/spec/bundler/runtime/gem_tasks_spec.rb Index: spec/bundler/commands/exec_spec.rb =================================================================== --- spec/bundler/commands/exec_spec.rb (revision 67541) +++ spec/bundler/commands/exec_spec.rb (revision 67542) @@ -530,7 +530,7 @@ RSpec.describe "bundle exec" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/commands/exec_spec.rb#L530 expect(out).to include("Installing foo 1.0") end - describe "with gems bundled via :path with invalid gemspecs", :ruby_repo do + describe "with gems bundled via :path with invalid gemspecs" do it "outputs the gemspec validation errors" do build_lib "foo" Index: spec/bundler/commands/binstubs_spec.rb =================================================================== --- spec/bundler/commands/binstubs_spec.rb (revision 67541) +++ spec/bundler/commands/binstubs_spec.rb (revision 67542) @@ -202,7 +202,7 @@ RSpec.describe "bundle binstubs <gem>" d https://github.com/ruby/ruby/blob/trunk/spec/bundler/commands/binstubs_spec.rb#L202 context "when requesting a different bundler version" do before { lockfile lockfile.gsub(Bundler::VERSION, "999.999.999") } - it "attempts to load that version", :ruby_repo do + it "attempts to load that version" do sys_exec bundled_app("bin/rackup").to_s expect(exitstatus).to eq(42) if exitstatus expect(last_command.stderr).to include("Activating bundler (999.999.999) failed:"). Index: spec/bundler/other/major_deprecation_spec.rb =================================================================== --- spec/bundler/other/major_deprecation_spec.rb (revision 67541) +++ spec/bundler/other/major_deprecation_spec.rb (revision 67542) @@ -240,7 +240,7 @@ RSpec.describe "major deprecations" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/other/major_deprecation_spec.rb#L240 expect(deprecations).to be_empty end - it "should print a proper warning, and use gems.rb", :ruby_repo do + it "should print a proper warning, and use gems.rb" do create_file "gems.rb" install_gemfile! <<-G source "file://#{gem_repo1}" @@ -340,7 +340,7 @@ RSpec.describe "major deprecations" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/other/major_deprecation_spec.rb#L340 RUBY end - it "should print a single deprecation warning", :ruby_repo do + it "should print a single deprecation warning" do expect(warnings).to include( "Multiple gemfiles (gems.rb and Gemfile) detected. Make sure you remove Gemfile and Gemfile.lock since bundler is ignoring them in favor of gems.rb and gems.rb.locked." ) Index: spec/bundler/runtime/gem_tasks_spec.rb =================================================================== --- spec/bundler/runtime/gem_tasks_spec.rb (revision 67541) +++ spec/bundler/runtime/gem_tasks_spec.rb (revision 67542) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/spec/bundler/runtime/gem_tasks_spec.rb#L1 # frozen_string_literal: true -RSpec.describe "require 'bundler/gem_tasks'", :ruby_repo do +RSpec.describe "require 'bundler/gem_tasks'" do before :each do bundled_app("foo.gemspec").open("w") do |f| f.write <<-GEMSPEC Index: spec/bundler/install/deploy_spec.rb =================================================================== --- spec/bundler/install/deploy_spec.rb (revision 67541) +++ spec/bundler/install/deploy_spec.rb (revision 67542) @@ -64,7 +64,7 @@ RSpec.describe "install with --deploymen https://github.com/ruby/ruby/blob/trunk/spec/bundler/install/deploy_spec.rb#L64 bundle! :install, forgotten_command_line_options(:deployment => true, :without => "test") end - it "works when you bundle exec bundle", :ruby_repo do + it "works when you bundle exec bundle" do bundle :install bundle "install --deployment" bundle! "exec bundle check" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/