Sha256: 092bf7af55c41863dcaac2029733d110eecb438ba0f67a8a7368097fa7667307

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 Bytes

Contents

def assert_assigns(node_type, value, tree)
  assert_kind_of Block, tree
  assert_kind_of Statement, tree.elements.last
  assert_kind_of Assignment, tree.elements.last.elements.last
  assert_kind_of Identifier, tree.elements.last.elements.last.elements[0]
  assert_kind_of AssignmentOperator, tree.elements.last.elements.last.elements[1]
  assert_kind_of node_type, tree.elements.last.elements.last.elements[2]
  assert_equal value, tree.elements.last.elements.last.elements[2].text_value unless(value.nil?)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
koi-reference-parser-0.0.3 test/helpers/assert_assigns.rb