Module: AE
- Defined in:
- lib/ae.rb,
lib/ae/ansi.rb,
lib/ae/must.rb,
lib/ae/check.rb,
lib/ae/assert.rb,
lib/ae/expect.rb,
lib/ae/legacy.rb,
lib/ae/should.rb,
lib/ae/version.rb,
lib/ae/assertor.rb,
lib/ae/assertion.rb,
lib/ae/subjunctive.rb,
lib/ae/basic_object.rb,
lib/ae/basic_object.rb
Defined Under Namespace
Modules: Assert, Check, Expect, Legacy, Must, Should, Subjunctive, World Classes: Assertion, Assertor, BasicObject
Constant Summary collapse
- VERSION =
'1.9.0'
Class Method Summary collapse
-
.ansi=(boolean) ⇒ Object
To turn of ANSI colorized error messages off, set ansi to
falsein your test helper. -
.ansi? ⇒ Boolean
ANSI mode.
-
.assertion_error=(exception_class) ⇒ Object
Set Assertion class.
Class Method Details
.ansi=(boolean) ⇒ Object
To turn of ANSI colorized error messages off, set ansi to false in your test helper.
21 22 23 |
# File 'lib/ae/ansi.rb', line 21 def self.ansi=(boolean) @ansi = boolean end |
.ansi? ⇒ Boolean
ANSI mode.
11 12 13 |
# File 'lib/ae/ansi.rb', line 11 def self.ansi? @ansi end |
.assertion_error=(exception_class) ⇒ Object
Set Assertion class. This is a convenience method for framework adapters, used to set the exception class that a framework uses to raise an assertion error.
13 14 15 16 17 |
# File 'lib/ae.rb', line 13 def self.assertion_error=(exception_class) verbose, $VERBOSE = $VERBOSE, nil Object.const_set(:Assertion, exception_class) $VERBOSE = verbose end |