mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Merge pull request #1437 from takiy33/fix_rspec_warnings
Fix warning: Using the raise_error matcher without providing a specific error
This commit is contained in:
commit
1f951143a1
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ describe Pry::Hooks do
|
||||||
it 'should not allow adding of a hook with a duplicate name' do
|
it 'should not allow adding of a hook with a duplicate name' do
|
||||||
@hooks.add_hook(:test_hook, :my_name) {}
|
@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
|
end
|
||||||
|
|
||||||
it 'should create a new hook with a block' do
|
it 'should create a new hook with a block' do
|
||||||
|
|
|
@ -102,7 +102,7 @@ describe Pry do
|
||||||
|
|
||||||
# bug fix for https://github.com/pry/pry/issues/93
|
# bug fix for https://github.com/pry/pry/issues/93
|
||||||
it 'should not leak pry constants into Object namespace' do
|
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
|
end
|
||||||
|
|
||||||
it 'should be able to operate inside the BasicObject class' do
|
it 'should be able to operate inside the BasicObject class' do
|
||||||
|
|
Loading…
Reference in a new issue