Module: Quarry::Design
- Defined in:
- lib/quarry/design/spec.rb
Defined Under Namespace
Classes: Specification
Class Method Summary collapse
-
.check ⇒ Object
TODO: make output compatible with unit_diff ?.
- .outline ⇒ Object
- .specification(description, &specification) ⇒ Object (also: spec)
- .specifications ⇒ Object
Class Method Details
.check ⇒ Object
TODO: make output compatible with unit_diff ?
19 20 21 22 23 |
# File 'lib/quarry/design/spec.rb', line 19 def check specifications.each do |specification| specification.check end end |
.outline ⇒ Object
25 26 27 28 29 |
# File 'lib/quarry/design/spec.rb', line 25 def outline specifications.each do |specification| specification.outline end end |
.specification(description, &specification) ⇒ Object Also known as: spec
12 13 14 |
# File 'lib/quarry/design/spec.rb', line 12 def specification(description, &specification) specifications << Specification.new(nil, description, &specification) end |
.specifications ⇒ Object
8 9 10 |
# File 'lib/quarry/design/spec.rb', line 8 def specifications @specifications ||= [] end |