diff options
author | Utkarsh Gupta <utkarsh@debian.org> | 2020-06-21 02:07:14 +0530 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-07-15 16:05:12 +0900 |
commit | 215f7c31658a649efa276e18811d69f111931f0f (patch) | |
tree | 3eeb05ce59ec87e0adce3a816e80c1b771a5c990 /spec/bundler/commands | |
parent | 4875a96eddacc4c95f6b5d4129d919c7548b5082 (diff) | |
download | ruby-215f7c31658a649efa276e18811d69f111931f0f.tar.gz |
[rubygems/rubygems] Fix linting and make Style/RedundantInterpolation happy
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
https://github.com/rubygems/rubygems/commit/83e330fa87
Diffstat (limited to 'spec/bundler/commands')
-rw-r--r-- | spec/bundler/commands/newgem_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb index c45cc8dfd4..b1e84c73f3 100644 --- a/spec/bundler/commands/newgem_spec.rb +++ b/spec/bundler/commands/newgem_spec.rb @@ -155,7 +155,7 @@ RSpec.describe "bundle gem" do it "generates a gem skeleton with rubocop" do gem_skeleton_assertions expect(bundled_app("test-gem/Rakefile")).to read_as( - include('# frozen_string_literal: true'). + include("# frozen_string_literal: true"). and(include('require "rubocop/rake_task"'). and(include("RuboCop::RakeTask.new"). and(match(/default:.+:rubocop/)))) @@ -176,11 +176,11 @@ RSpec.describe "bundle gem" do end it "run rubocop inside the generated gem with no offenses" do - prepare_gemspec(bundled_app("#{gem_name}", "#{gem_name}.gemspec")) + prepare_gemspec(bundled_app(gem_name, "#{gem_name}.gemspec")) gems = ["rake", "rubocop"] - path = Bundler.feature_flag.default_install_uses_path? ? local_gem_path(:base => bundled_app("#{gem_name}")) : system_gem_path + path = Bundler.feature_flag.default_install_uses_path? ? local_gem_path(:base => bundled_app(gem_name)) : system_gem_path realworld_system_gems gems, :path => path - bundle "exec rubocop --ignore-parent-exclusion", :dir => bundled_app("#{gem_name}") + bundle "exec rubocop --ignore-parent-exclusion", :dir => bundled_app(gem_name) expect($?.exitstatus).to eq(0) if exitstatus end end |