Module: Shoulda::Matchers::Doublespeak
- Extended by:
- Forwardable
- Defined in:
- lib/shoulda/matchers/doublespeak.rb,
lib/shoulda/matchers/doublespeak/world.rb,
lib/shoulda/matchers/doublespeak/double.rb,
lib/shoulda/matchers/doublespeak/method_call.rb,
lib/shoulda/matchers/doublespeak/object_double.rb,
lib/shoulda/matchers/doublespeak/double_collection.rb,
lib/shoulda/matchers/doublespeak/stub_implementation.rb,
lib/shoulda/matchers/doublespeak/proxy_implementation.rb,
lib/shoulda/matchers/doublespeak/double_implementation_registry.rb
Defined Under Namespace
Modules: DoubleImplementationRegistry
Classes: Double, DoubleCollection, MethodCall, ObjectDouble, ProxyImplementation, StubImplementation, World
Class Method Summary
collapse
Class Method Details
.debug(&block) ⇒ Object
21
22
23
24
25
|
# File 'lib/shoulda/matchers/doublespeak.rb', line 21
def debug(&block)
if debugging_enabled?
puts block.call end
end
|
.debugging_enabled? ⇒ Boolean
17
18
19
|
# File 'lib/shoulda/matchers/doublespeak.rb', line 17
def debugging_enabled?
ENV['DEBUG_DOUBLESPEAK'] == '1'
end
|
.world ⇒ Object
13
14
15
|
# File 'lib/shoulda/matchers/doublespeak.rb', line 13
def world
@_world ||= World.new
end
|