Skip to content

Commit

Permalink
Merge pull request #49 from utkarsh2102/fix-gemspec-git-specs
Browse files Browse the repository at this point in the history
Fix spec failures for the GemspecGit cop
  • Loading branch information
utkarsh2102 authored Nov 29, 2023
2 parents eb1576d + 573a1dd commit d72ddda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ AllCops:
- 'vendor/**/*'
TargetRubyVersion: 2.6

Gemspec/DevelopmentDependencies:
Enabled: false

Naming/FileName:
Exclude:
- lib/rubocop-packaging.rb
Expand Down
6 changes: 1 addition & 5 deletions spec/rubocop/cop/packaging/gemspec_git_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# frozen_string_literal: true

RSpec.describe RuboCop::Cop::Packaging::GemspecGit do
subject(:cop) { described_class.new(config) }

let(:config) { RuboCop::Config.new }

RSpec.describe RuboCop::Cop::Packaging::GemspecGit, :config do
let(:message) { RuboCop::Cop::Packaging::GemspecGit::MSG }

it "registers an offense when using `git` for :files=" do
Expand Down

0 comments on commit d72ddda

Please sign in to comment.