Sha256: b779779007adb9f5d12582cb074d81d57f88909fce378dcbfe042a96cb12136d

Contents?: true

Size: 287 Bytes

Versions: 4

Compression:

Stored size: 287 Bytes

Contents

# frozen_string_literal: true

RSpec.shared_examples 'detects style' do |source, style, filename: 'x_spec.rb'|
  it 'generates a todo based on the detected style' do
    inspect_source(source, filename)

    expect(cop.config_to_allow_offenses).to eq('EnforcedStyle' => style)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubocop-rspec-1.35.0 spec/shared/detects_style_behavior.rb
rubocop-rspec-1.34.1 spec/shared/detects_style_behavior.rb
rubocop-rspec-1.34.0 spec/shared/detects_style_behavior.rb
rubocop-rspec-1.33.0 spec/shared/detects_style_behavior.rb