From e2d3d13acbeab532c45fa808e64fc91616b22f48 Mon Sep 17 00:00:00 2001 From: takiy33 Date: Sun, 21 Jun 2015 08:56:04 +0900 Subject: [PATCH] Fix warning: Using the raise_error matcher without providing a specific error --- spec/hooks_spec.rb | 2 +- spec/pry_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/hooks_spec.rb b/spec/hooks_spec.rb index 96b0ac20..686b4736 100644 --- a/spec/hooks_spec.rb +++ b/spec/hooks_spec.rb @@ -15,7 +15,7 @@ describe Pry::Hooks do it 'should not allow adding of a hook with a duplicate name' do @hooks.add_hook(:test_hook, :my_name) {} - expect { @hooks.add_hook(:test_hook, :my_name) {} }.to raise_error + expect { @hooks.add_hook(:test_hook, :my_name) {} }.to raise_error ArgumentError end it 'should create a new hook with a block' do diff --git a/spec/pry_spec.rb b/spec/pry_spec.rb index c575c852..fdc85856 100644 --- a/spec/pry_spec.rb +++ b/spec/pry_spec.rb @@ -102,7 +102,7 @@ describe Pry do # bug fix for https://github.com/pry/pry/issues/93 it 'should not leak pry constants into Object namespace' do - expect { pry_eval(Object.new, "Command") }.to raise_error + expect { pry_eval(Object.new, "Command") }.to raise_error NameError end it 'should be able to operate inside the BasicObject class' do