Module: RSpec::Message::Within::ExpectationPatch
- Defined in:
- lib/rspec/message/within.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/rspec/message/within.rb', line 9 def self.included(base) # Seems to not work. Why? base.send :include, InstanceMethods base.send :alias_method, :orig_verify_messages_received, :verify_messages_received base.send :undef_method, :verify_messages_received base.send :define_method, :verify_messages_received, InstanceMethods.instance_method(:verify_messages_received) end |