summaryrefslogtreecommitdiff
path: root/spec/commands
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2019-03-02 14:13:59 +0200
committerKyrylo Silin <silin@kyrylo.org>2019-03-02 14:13:59 +0200
commite9cfdc8b45835ff9ac82fbe857aac9fd0c937b84 (patch)
treecf5146d76d4023ba14cf5059f8ac73a8a8dbfc8e /spec/commands
parentac24bad339e19f576592d98178ce0ae0a1659605 (diff)
downloadpry-e9cfdc8b45835ff9ac82fbe857aac9fd0c937b84.tar.gz
rubocop: fix offences of the Style/RescueStandardError cop
Diffstat (limited to 'spec/commands')
-rw-r--r--spec/commands/cat_spec.rb2
-rw-r--r--spec/commands/ls_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/commands/cat_spec.rb b/spec/commands/cat_spec.rb
index 813ff4a1..1a07a67c 100644
--- a/spec/commands/cat_spec.rb
+++ b/spec/commands/cat_spec.rb
@@ -87,7 +87,7 @@ describe "cat" do
it 'cat --ex should correctly display code that generated exception' do
begin
@o.broken_method
- rescue => e
+ rescue StandardError => e
@t.last_exception = e
end
expect(@t.eval('cat --ex')).to match(/this method is broken/)
diff --git a/spec/commands/ls_spec.rb b/spec/commands/ls_spec.rb
index 1ca25ec3..cabf7e0f 100644
--- a/spec/commands/ls_spec.rb
+++ b/spec/commands/ls_spec.rb
@@ -109,7 +109,7 @@ describe "ls" do
begin
pry_eval(test_case, "class GeFromulate2; @flurb=1.3; end", "cd GeFromulate2", "ls")
pry_eval(normalize)
- rescue
+ rescue StandardError
pry_eval(normalize)
raise
end