Sha256: 66959ca2b91f2639c3dee2d17ee1a994f1de0744839b87f7cda80b38814adcd5

Contents?: true

Size: 436 Bytes

Versions: 24

Compression:

Stored size: 436 Bytes

Contents

# 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'.freeze

  def expect_offense(source, filename = DEFAULT_FILENAME)
    super
  end

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rubocop-rspec-1.32.0 spec/support/expect_offense.rb
rubocop-rspec-1.31.0 spec/support/expect_offense.rb
rubocop-rspec-1.30.1 spec/support/expect_offense.rb
rubocop-rspec-1.30.0 spec/support/expect_offense.rb
rubocop-rspec-1.29.1 spec/support/expect_offense.rb
rubocop-rspec-1.29.0 spec/support/expect_offense.rb
rubocop-rspec-1.28.0 spec/support/expect_offense.rb
rubocop-rspec-1.27.0 spec/support/expect_offense.rb
rubocop-rspec-1.26.0 spec/support/expect_offense.rb
rubocop-rspec-1.25.1 spec/support/expect_offense.rb
rubocop-rspec-1.25.0 spec/support/expect_offense.rb
rubocop-rspec-1.24.0 spec/support/expect_offense.rb
rubocop-rspec-1.23.0 spec/support/expect_offense.rb
rubocop-rspec-1.22.2 spec/support/expect_offense.rb
rubocop-rspec-1.22.1 spec/support/expect_offense.rb
rubocop-rspec-1.22.0 spec/support/expect_offense.rb
rubocop-rspec-1.21.0 spec/support/expect_offense.rb
rubocop-rspec-1.20.1 spec/support/expect_offense.rb
rubocop-rspec-1.20.0 spec/support/expect_offense.rb
rubocop-rspec-1.19.0 spec/support/expect_offense.rb