Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ bundle exec rspec spec/rubocop/cop/style/format_string_spec.rb *[master]2.1.5
Run options:
include {:focus=>true}
exclude {:broken=>#<Proc:./spec/spec_helper.rb:21>, :ruby=>#<Proc:./spec/spec_helper.rb:19>}
All examples were filtered out; ignoring {:focus=>true}
...F.....F........F...
Failures:
1) RuboCop::Cop::Style::FormatString when enforced style is sprintf registers an offense for format with 2 arguments
Failure/Error: expect(cop.offenses.size).to eq(1)
expected: 1
got: 0
(compared using ==)
# ./spec/rubocop/cop/style/format_string_spec.rb:61:in `block (3 levels) in <top (required)>'
2) RuboCop::Cop::Style::FormatString when enforced style is percent registers an offense for sprintf with 3 arguments
Failure/Error: expect(cop.offenses.size).to eq(1)
expected: 1
got: 0
(compared using ==)
# ./spec/rubocop/cop/style/format_string_spec.rb:150:in `block (3 levels) in <top (required)>'
3) RuboCop::Cop::Style::FormatString when enforced style is format registers an offense for sprintf with 2 arguments
Failure/Error: expect(cop.offenses.size).to eq(1)
expected: 1
got: 0
(compared using ==)
# ./spec/rubocop/cop/style/format_string_spec.rb:121:in `block (3 levels) in <top (required)>'
Finished in 0.03528 seconds (files took 0.45545 seconds to load)
22 examples, 3 failures
Failed examples:
rspec ./spec/rubocop/cop/style/format_string_spec.rb:58 # RuboCop::Cop::Style::FormatString when enforced style is sprintf registers an offense for format with 2 arguments
rspec ./spec/rubocop/cop/style/format_string_spec.rb:147 # RuboCop::Cop::Style::FormatString when enforced style is percent registers an offense for sprintf with 3 arguments
rspec ./spec/rubocop/cop/style/format_string_spec.rb:118 # RuboCop::Cop::Style::FormatString when enforced style is format registers an offense for sprintf with 2 arguments
Randomized with seed 20125
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment