Module: AE
- Defined in:
- lib/ae.rb,
lib/ae/ok.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
Overview
TODO: This needs to be imporved. See KO project for better implementation.
Defined Under Namespace
Modules: Assert, CheckOK, Expect, Legacy, Must, Okay, Should, Subjunctive, World Classes: Assertion, Assertor, BasicObject
Constant Summary collapse
- VERSION =
becuase Ruby 1.8~ gets in the way :(
['version']
Class Method Summary collapse
-
.ansi=(boolean) ⇒ Object
To turn of ANSI colorized error messages off, set ansi to
false
in your test helper. - .ansi? ⇒ Boolean
-
.assertion_error=(exception_class) ⇒ Object
Set Assertion class.
- .const_missing(name) ⇒ Object
- .metadata ⇒ Object
Class Method Details
.ansi=(boolean) ⇒ Object
To turn of ANSI colorized error messages off, set ansi to false
in your test helper.
Example
AE.ansi = false
41 42 43 |
# File 'lib/ae.rb', line 41 def self.ansi=(boolean) @ansi = boolean end |
.ansi? ⇒ Boolean
30 31 32 |
# File 'lib/ae.rb', line 30 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.
21 22 23 24 25 |
# File 'lib/ae.rb', line 21 def self.assertion_error=(exception_class) verbose, $VERBOSE = $VERBOSE, nil Object.const_set(:Assertion, exception_class) $VERBOSE = verbose end |
.const_missing(name) ⇒ Object
11 12 13 14 |
# File 'lib/ae/version.rb', line 11 def self.const_missing(name) key = name.to_s.downcase [key] || super(name) end |
.metadata ⇒ Object
3 4 5 6 7 8 |
# File 'lib/ae/version.rb', line 3 def self. @metadata ||= ( require 'yaml' YAML.load(File.new(File.dirname(__FILE__) + '/../ae.yml')) ) end |