Class: Fix::Expectation
- Inherits:
-
Object
- Object
- Fix::Expectation
- Includes:
- Spectus::DSL
- Defined in:
- lib/fix/expectation.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(positive, definition, *args) ⇒ Expectation
constructor
A new instance of Expectation.
Constructor Details
#initialize(positive, definition, *args) ⇒ Expectation
Returns a new instance of Expectation.
8 9 10 11 12 13 14 15 16 |
# File 'lib/fix/expectation.rb', line 8 def initialize positive, definition, *args @positive = positive @matcher, @expected = definition.to_a.flatten 1 @args = args freeze ExpectationSet.instance.add self end |