Class: Kiba::Extend::JobTest::TestclassPrepper

Inherits:
Object
  • Object
show all
Defined in:
lib/kiba/extend/job_test/testclass_prepper.rb

Instance Method Summary collapse

Constructor Details

#initialize(nodes) ⇒ TestclassPrepper

Returns a new instance of TestclassPrepper.

Parameters:

  • nodes (Array<Psych::Nodes::Mapping>)


8
9
10
# File 'lib/kiba/extend/job_test/testclass_prepper.rb', line 8

def initialize(nodes)
  @yml = nodes.children
end

Instance Method Details

#callArray<Hash>

Returns:

  • (Array<Hash>)


13
14
15
16
# File 'lib/kiba/extend/job_test/testclass_prepper.rb', line 13

def call
  set_testclass
  tests
end