Class: Simmer::Specification::Assert
- Inherits:
-
Object
- Object
- Simmer::Specification::Assert
- Defined in:
- lib/simmer/specification/assert.rb,
lib/simmer/specification/assert/assertions.rb,
lib/simmer/specification/assert/assertions/table.rb,
lib/simmer/specification/assert/assertions/output.rb,
lib/simmer/specification/assert/assertions/bad_table_assertion.rb,
lib/simmer/specification/assert/assertions/bad_output_assertion.rb
Overview
Describes what should be expected after a Pdi::Spoon execution.
Defined Under Namespace
Classes: Assertions
Instance Attribute Summary collapse
-
#assertions ⇒ Object
readonly
Returns the value of attribute assertions.
Instance Method Summary collapse
-
#initialize(assertions: []) ⇒ Assert
constructor
A new instance of Assert.
Constructor Details
#initialize(assertions: []) ⇒ Assert
Returns a new instance of Assert.
20 21 22 23 24 |
# File 'lib/simmer/specification/assert.rb', line 20 def initialize(assertions: []) @assertions = Assertions.array(assertions) freeze end |
Instance Attribute Details
#assertions ⇒ Object (readonly)
Returns the value of attribute assertions.
18 19 20 |
# File 'lib/simmer/specification/assert.rb', line 18 def assertions @assertions end |