Sha256: 737fed8e14cea855ab27cc220e3759ab5e59f1da2dbc009b0a495096446f93c1

Contents?: true

Size: 256 Bytes

Versions: 23

Compression:

Stored size: 256 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(source, filename)

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

Version data entries

23 entries across 23 versions & 1 rubygems

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