Module: DescribeHelper
- Defined in:
- lib/blueprints/extensions/rspec.rb
Instance Method Summary collapse
-
#build_blueprint(*names) ⇒ Object
(also: #build)
Creates new before filter that builds blueprints before each spec.
-
#build_blueprint!(*names) ⇒ Object
(also: #build!)
Same as #build_blueprint except that you can use it to build same blueprint several times.
Instance Method Details
#build_blueprint(*names) ⇒ Object Also known as: build
Creates new before filter that builds blueprints before each spec.
3 4 5 |
# File 'lib/blueprints/extensions/rspec.rb', line 3 def build_blueprint(*names) before { build_blueprint *names } end |
#build_blueprint!(*names) ⇒ Object Also known as: build!
Same as #build_blueprint except that you can use it to build same blueprint several times.
8 9 10 |
# File 'lib/blueprints/extensions/rspec.rb', line 8 def build_blueprint!(*names) before { build_blueprint! *names } end |