Module: Ww::Double
- Defined in:
- lib/ww/double.rb,
lib/ww/double/spy.rb,
lib/ww/double/mock.rb,
lib/ww/double/stub.rb,
lib/ww/double/mock/expectation.rb
Defined Under Namespace
Modules: Mock, Spy, Stub Classes: Error, MockError
Constant Summary collapse
Class Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
14 15 16 17 18 |
# File 'lib/ww/double.rb', line 14 def self.extended(base) MODULES.each do |mod| base.send(:include, mod::InstanceMethods) if mod.const_defined?("InstanceMethods") end end |