Module: FunWith::Testing::VerbosityMethods::ClassMethods
- Defined in:
- lib/fun_with/testing/verbosity_methods.rb
Instance Method Summary collapse
Instance Method Details
#set_verbose(mode = true) ⇒ Object
11 12 13 |
# File 'lib/fun_with/testing/verbosity_methods.rb', line 11 def set_verbose( mode = true ) self.const_set( :FWT_TEST_VERBOSITY, mode ) end |
#verbose? ⇒ Boolean
15 16 17 18 19 |
# File 'lib/fun_with/testing/verbosity_methods.rb', line 15 def verbose? return self::FWT_TEST_VERBOSITY if self.constants.include?( :FWT_TEST_VERBOSITY ) return self.superclass.verbose? if self.superclass.respond_to?(:verbose) return false end |