Skip to content

Commit

Permalink
Fix linting and make Style/RedundantInterpolation happy
Browse files Browse the repository at this point in the history
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
  • Loading branch information
utkarsh2102 committed Jun 21, 2020
1 parent 4741126 commit 83e330f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bundler/spec/commands/newgem_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def gem_skeleton_assertions
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/))))
Expand All @@ -176,11 +176,11 @@ def gem_skeleton_assertions
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
Expand Down

0 comments on commit 83e330f

Please sign in to comment.