Sha256: cc247ca352d82340c8a71e942c63c22bcda6442b6b5a091c27995ccd450c3c3d

Contents?: true

Size: 261 Bytes

Versions: 5

Compression:

Stored size: 261 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubocop-rspec-1.16.0 spec/shared/detects_style_behavior.rb
rubocop-rspec-1.15.1 spec/shared/detects_style_behavior.rb
rubocop-rspec-1.15.0 spec/shared/detects_style_behavior.rb
rubocop-rspec-1.14.0 spec/shared/detects_style_behavior.rb
rubocop-rspec-1.13.0 spec/shared/detects_style_behavior.rb