Sha256: 17f4047388c8411a5bc2d6788321e20a52d4702bcd757348e5cffa17c10af96b

Contents?: true

Size: 703 Bytes

Versions: 12

Compression:

Stored size: 703 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')

class TestStepStatus < Test::Unit::TestCase
  def test_dependency
    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]

    Misc.with_env "SCOUT_UPDATE", "true" do
      step2.run
      assert step2.updated?

      sleep 0.1
      step1.clean
      step1.run
      refute step2.updated?
    end
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
scout-gear-10.7.3 test/scout/workflow/step/test_status.rb
scout-gear-10.7.2 test/scout/workflow/step/test_status.rb
scout-gear-10.7.1 test/scout/workflow/step/test_status.rb
scout-gear-10.7.0 test/scout/workflow/step/test_status.rb
scout-gear-10.4.0 test/scout/workflow/step/test_status.rb
scout-gear-10.3.0 test/scout/workflow/step/test_status.rb
scout-gear-10.2.0 test/scout/workflow/step/test_status.rb
scout-gear-10.1.0 test/scout/workflow/step/test_status.rb
scout-gear-10.0.1 test/scout/workflow/step/test_status.rb
scout-gear-9.1.0 test/scout/workflow/step/test_status.rb
scout-gear-9.0.0 test/scout/workflow/step/test_status.rb
scout-gear-8.1.0 test/scout/workflow/step/test_status.rb