Sha256: 6803ecc8e792696f4c30fb62b45a1e6b12b3260ef3acd82349cd22a80a63b364

Contents?: true

Size: 669 Bytes

Versions: 5

Compression:

Stored size: 669 Bytes

Contents

require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb')
require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1')

require 'scout/workflow'
class TestStepProvenance < Test::Unit::TestCase
  def test_true
    tmpfile = tmpdir.test_step
    step1 = Step.new tmpfile.step1, ["12"] do |s|
      s.length
    end

    step2 = Step.new tmpfile.step2 do 
      step1 = dependencies.first
      step1.inputs.first + " has " + step1.load.to_s + " characters"
    end

    step2.dependencies = [step1]

    step2.run

    assert_include Step.prov_report(step2), 'step1'
    assert_include Step.prov_report(step2), 'step2'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
scout-gear-9.0.0 test/scout/workflow/step/test_provenance.rb
scout-gear-8.1.0 test/scout/workflow/step/test_provenance.rb
scout-gear-8.0.0 test/scout/workflow/step/test_provenance.rb
scout-gear-7.3.0 test/scout/workflow/step/test_provenance.rb
scout-gear-7.2.0 test/scout/workflow/step/test_provenance.rb