Module: Fix::ItHelper Private
- Defined in:
- lib/fix/helpers/it_helper.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
It’s helper.
Instance Method Summary collapse
-
#it(&spec) ⇒ Array
Add it method to the DSL.
Instance Method Details
#it(&spec) ⇒ Array
Add it method to the DSL.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/fix/helpers/it_helper.rb', line 17 def it(&spec) i = It.new(@front_object, @challenges, @helpers.dup) result = begin i.instance_eval(&spec) rescue Spectus::Result::Fail => f f end if @configuration.fetch(:verbose, true) print result.to_char(@configuration.fetch(:color, false)) end results << result end |