Files
metasploit-gs/spec/support/matchers/respond_to_protected.rb
T
Luke Imhoff 1fd8fe57df Merge staging/great-backport to master
Conflicts:
	spec/lib/msf/core/module_spec.rb
2014-11-12 11:08:18 -06:00

7 lines
186 B
Ruby

RSpec::Matchers.define :respond_to_protected do |method_name|
protected_and_private = true
match do |receiver|
receiver.respond_to?(method_name, protected_and_private)
end
end