Class: Simmer::Specification::Assert

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#assertionsObject (readonly)

Returns the value of attribute assertions.



18
19
20
# File 'lib/simmer/specification/assert.rb', line 18

def assertions
  @assertions
end