Module: XSpec::Evaluator
- Defined in:
- lib/xspec/evaluators.rb
Defined Under Namespace
Modules: Bottom, Doubles, RSpecExpectations, Simple, Top
Constant Summary collapse
- EvaluateFailed =
As long as the ‘Top` evaluator is used, evaluators can raise `EvaluateFailed` to indicate a failure separate from a normal code exception.
Class.new(RuntimeError)
- DEFAULT =
stack do include Simple include Doubles end
Class Method Summary collapse
-
.stack(&block) ⇒ Object
A stack is typically book-ended by the top and bottom evaluators, so this helper is the most commond way to build up a custom stack.
Class Method Details
.stack(&block) ⇒ Object
A stack is typically book-ended by the top and bottom evaluators, so this helper is the most commond way to build up a custom stack.
12 13 14 15 16 17 18 |
# File 'lib/xspec/evaluators.rb', line 12 def self.stack(&block) Module.new do include Bottom instance_exec &block include Top end end |