From 57d22238adb82152c07430cf5c9616b7002d9252 Mon Sep 17 00:00:00 2001 From: Laust Rud Jacobsen Date: Mon, 12 Oct 2015 22:05:21 +0200 Subject: [PATCH] Rubocop: string encoding simplify --- .rubocop_todo.yml | 6 ------ spec/models/notice_spec.rb | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 19e5fb5..fe415a5 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -570,9 +570,3 @@ Style/TrailingWhitespace: Style/UnlessElse: Exclude: - 'app/controllers/problems_searcher.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Style/UnneededPercentQ: - Exclude: - - 'spec/models/notice_spec.rb' diff --git a/spec/models/notice_spec.rb b/spec/models/notice_spec.rb index 26505bf..6d40e2d 100644 --- a/spec/models/notice_spec.rb +++ b/spec/models/notice_spec.rb @@ -41,7 +41,7 @@ describe Notice, type: 'model' do it 'has a curl representation' do cmd = notice.to_curl - expect(cmd).to eq(%q[curl -X GET -H 'User-Agent: Mozilla/5.0' http://example.com/resource/12]) + expect(cmd).to eq("curl -X GET -H 'User-Agent: Mozilla/5.0' http://example.com/resource/12") end end -- libgit2 0.21.2