1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

rubocop: fix offences of the Style/UnneededPercentQ cop

This commit is contained in:
Kyrylo Silin 2019-03-02 17:00:00 +02:00
parent e083d32487
commit 49827934ea
2 changed files with 1 additions and 7 deletions

View file

@ -314,12 +314,6 @@ Style/PerlBackrefs:
- 'lib/pry/method.rb'
- 'lib/pry/rubygem.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/UnneededPercentQ:
Exclude:
- 'spec/syntax_checking_spec.rb'
# Offense count: 17
# Cop supports --auto-correct.
Style/VariableInterpolation:

View file

@ -40,7 +40,7 @@ describe Pry do
end
it "should not intefere with syntax errors explicitly raised" do
redirect_pry_io(InputTester.new(%q(raise SyntaxError, "unexpected $end")), @str_output) do
redirect_pry_io(InputTester.new('raise SyntaxError, "unexpected $end"'), @str_output) do
Pry.start
end