Remove rpsec should_not raise_error deprecations

Checking that a specifc error is not raised is deprecated in rspec:
https://github.com/rspec/rspec-expectations/pull/244
bug/bundler_fix
Brandon Turner 2013-08-23 16:29:30 -05:00
parent 4760000bca
commit cf69577433
2 changed files with 3 additions and 3 deletions

View File

@ -133,7 +133,7 @@ describe Msf::Modules::Loader::Base do
it 'should capture the lexical scope' do
expect {
namespace_module.module_eval_with_lexical_scope(module_content, module_path)
}.to_not raise_error(NameError)
}.to_not raise_error
end
context 'with malformed module content' do
@ -1173,7 +1173,7 @@ describe Msf::Modules::Loader::Base do
# not defined on `nil`.
expect {
subject.send(:restore_namespace_module, parent_module, relative_name, @original_namespace_module)
}.to_not raise_error(NoMethodError)
}.to_not raise_error
end
context 'with namespace_module nil' do

View File

@ -229,7 +229,7 @@ describe Msf::Modules::Namespace do
it 'should not raise an error' do
expect {
subject.version_compatible!(module_path, module_reference_name)
}.to_not raise_error(Msf::Modules::VersionCompatibilityError)
}.to_not raise_error
end
end
end