Module: Graham
- Defined in:
- lib/graham.rb,
lib/graham/pp.rb,
lib/graham/dsl.rb,
lib/graham/version.rb,
lib/graham/test_case.rb
Overview
}
Defined Under Namespace
Classes: Core, DSL, PP, RakeTask, TestCase
Constant Summary collapse
- VERSION =
'0.0.3'
Class Method Summary collapse
-
.pp(ns = nil, &b) ⇒ Object
(also: test!)
A convenience method that calls ::test and passes the output to a pretty printer.
-
.test(ns = nil, &b) ⇒ Object
A convenience method that builds and executes a Graham::Core in the given namespace (defaults to Cases).
Class Method Details
.pp(ns = nil, &b) ⇒ Object Also known as: test!
A convenience method that calls ::test and passes the output to a pretty printer.
41 42 43 |
# File 'lib/graham.rb', line 41 def pp(ns=nil, &b) PP.new(test ns,&b).pp end |
.test(ns = nil, &b) ⇒ Object
A convenience method that builds and executes a Graham::Core in the given namespace (defaults to Cases). See documentation for Graham for more on usage.
36 37 38 |
# File 'lib/graham.rb', line 36 def test(ns=nil, &b) DSL.build_core(ns, &b).test end |