ruby-changes:62229
From: Utkarsh <ko1@a...>
Date: Wed, 15 Jul 2020 16:05:42 +0900 (JST)
Subject: [ruby-changes:62229] 084489be87 (master): [rubygems/rubygems] Fix tests pertaining to newgem
https://git.ruby-lang.org/ruby.git/commit/?id=084489be87 From 084489be87cb006a283bb5413921bf8099e80ca9 Mon Sep 17 00:00:00 2001 From: Utkarsh Gupta <utkarsh@d...> Date: Fri, 19 Jun 2020 18:24:11 +0530 Subject: [rubygems/rubygems] Fix tests pertaining to newgem Signed-off-by: Utkarsh Gupta <utkarsh@d...> https://github.com/rubygems/rubygems/commit/e2ee0b7de3 diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb index d0add6d..b3dc511 100644 --- a/spec/bundler/commands/newgem_spec.rb +++ b/spec/bundler/commands/newgem_spec.rb @@ -532,6 +532,8 @@ RSpec.describe "bundle gem" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/commands/newgem_spec.rb#L532 it "creates a default rake task to run the test suite" do rakefile = strip_whitespace <<-RAKEFILE + # frozen_string_literal: true + require "bundler/gem_tasks" require "rake/testtask" @@ -588,6 +590,8 @@ RSpec.describe "bundle gem" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/commands/newgem_spec.rb#L590 it "creates a default rake task to run the test suite" do rakefile = strip_whitespace <<-RAKEFILE + # frozen_string_literal: true + require "bundler/gem_tasks" require "rake/testtask" @@ -887,10 +891,12 @@ RSpec.describe "bundle gem" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/commands/newgem_spec.rb#L891 it "depends on compile task for build" do rakefile = strip_whitespace <<-RAKEFILE + # frozen_string_literal: true + require "bundler/gem_tasks" require "rake/extensiontask" - task :build => :compile + task build: :compile Rake::ExtensionTask.new("#{gem_name}") do |ext| ext.lib_dir = "lib/#{gem_name}" @@ -985,6 +991,8 @@ Usage: "bundle gem NAME [OPTIONS]" https://github.com/ruby/ruby/blob/trunk/spec/bundler/commands/newgem_spec.rb#L991 expect(bundled_app("foobar/spec/spec_helper.rb")).to exist rakefile = strip_whitespace <<-RAKEFILE + # frozen_string_literal: true + require "bundler/gem_tasks" require "rspec/core/rake_task" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/