Commit 57d22238adb82152c07430cf5c9616b7002d9252
1 parent
ba9c1cb2
Exists in
master
and in
1 other branch
Rubocop: string encoding simplify
Showing
2 changed files
with
1 additions
and
7 deletions
Show diff stats
.rubocop_todo.yml
... | ... | @@ -570,9 +570,3 @@ Style/TrailingWhitespace: |
570 | 570 | Style/UnlessElse: |
571 | 571 | Exclude: |
572 | 572 | - 'app/controllers/problems_searcher.rb' |
573 | - | |
574 | -# Offense count: 1 | |
575 | -# Cop supports --auto-correct. | |
576 | -Style/UnneededPercentQ: | |
577 | - Exclude: | |
578 | - - 'spec/models/notice_spec.rb' | ... | ... |
spec/models/notice_spec.rb
... | ... | @@ -41,7 +41,7 @@ describe Notice, type: 'model' do |
41 | 41 | |
42 | 42 | it 'has a curl representation' do |
43 | 43 | cmd = notice.to_curl |
44 | - expect(cmd).to eq(%q[curl -X GET -H 'User-Agent: Mozilla/5.0' http://example.com/resource/12]) | |
44 | + expect(cmd).to eq("curl -X GET -H 'User-Agent: Mozilla/5.0' http://example.com/resource/12") | |
45 | 45 | end |
46 | 46 | end |
47 | 47 | ... | ... |