Sha256: b7bd326f9f69d5c3a9b00c6250da05e2cee5c59edf611a716728742733ec8337

Contents?: true

Size: 460 Bytes

Versions: 4

Compression:

Stored size: 460 Bytes

Contents

# frozen_string_literal: true

# rubocop-rspec gem extension of RuboCop's ExpectOffense module.
#
# This mixin is the same as rubocop's ExpectOffense except the default
# filename ends with `_spec.rb`
module ExpectOffense
  include RuboCop::RSpec::ExpectOffense

  DEFAULT_FILENAME = 'example_spec.rb'

  def expect_offense(source, filename = DEFAULT_FILENAME)
    super
  end

  def expect_no_offenses(source, filename = DEFAULT_FILENAME)
    super
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubocop-rspec-1.35.0 spec/support/expect_offense.rb
rubocop-rspec-1.34.1 spec/support/expect_offense.rb
rubocop-rspec-1.34.0 spec/support/expect_offense.rb
rubocop-rspec-1.33.0 spec/support/expect_offense.rb