Sha256: b127c4aca48955731978bcc101b14d36482131ad0bd4cfe0bb4840384958784e

Contents?: true

Size: 268 Bytes

Versions: 6

Compression:

Stored size: 268 Bytes

Contents

RSpec.shared_examples 'detects style' do |source, detected_style|
  it 'generates a todo based on the detected style' do
    inspect_source(cop, source, 'foo_spec.rb')

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubocop-rspec-1.12.0 spec/shared/detects_style_behavior.rb
rubocop-rspec-1.11.0 spec/shared/detects_style_behavior.rb
rubocop-rspec-1.10.0 spec/shared/detects_style_behavior.rb
rubocop-rspec-1.9.1 spec/shared/detects_style_behavior.rb
rubocop-rspec-1.9.0 spec/shared/detects_style_behavior.rb
rubocop-rspec-1.8.0 spec/shared/detects_style_behavior.rb