Module: Quarry::Design

Defined in:
lib/quarry/design/spec.rb

Defined Under Namespace

Classes: Specification

Class Method Summary collapse

Class Method Details

.checkObject

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

.outlineObject



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

.specificationsObject



8
9
10
# File 'lib/quarry/design/spec.rb', line 8

def specifications
  @specifications ||= []
end