summaryrefslogtreecommitdiff
path: root/spec/pry_output_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/pry_output_spec.rb')
-rw-r--r--spec/pry_output_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/pry_output_spec.rb b/spec/pry_output_spec.rb
index a8b14d36..a4168b83 100644
--- a/spec/pry_output_spec.rb
+++ b/spec/pry_output_spec.rb
@@ -7,19 +7,19 @@ describe Pry do
end
it "should catch serialization exceptions" do
- Pry.config.print = lambda { |*a| raise "catch-22" }
+ Pry.config.print = lambda { |*_a| raise "catch-22" }
expect { mock_pry("1") }.to_not raise_error
end
it "should display serialization exceptions" do
- Pry.config.print = lambda { |*a| raise "catch-22" }
+ Pry.config.print = lambda { |*_a| raise "catch-22" }
expect(mock_pry("1")).to match(/\(pry\) output error: #<RuntimeError: catch-22>/)
end
it "should catch errors serializing exceptions" do
- Pry.config.print = lambda do |*a|
+ Pry.config.print = lambda do |*_a|
ex = Exception.new("catch-22")
class << ex
def inspect; raise ex; end