Sha256: d70f94823956cc6ffbb5fbfc3e024862e4cbf3c4915b1433d0168b105205e7f2

Contents?: true

Size: 541 Bytes

Versions: 5

Compression:

Stored size: 541 Bytes

Contents

require_relative './test_xml_generator'

class TestXmlBlockingJob < Test::Unit::TestCase
  def test_blocking_job
    builder = JenkinsJob::Builder.new

    builder.freestyle 'pre-deploy' do
      blocked_by 'deploy', 'post-deploy'
    end

    actual = builder.config_as_xml_node('pre-deploy')

    { 'useBuildBlocker' => 'true',
      'blockingJobs' => "deploy\npost-deploy" }.each do |k, v|
      assert v, actual.xpath("./project/properties/hudson.plugins.buildblocker.BuildBlockerProperty/#{k}").text
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubyjobbuilderdsl-0.0.5 test/test_blocking_job.rb
rubyjobbuilderdsl-0.0.3 test/test_blocking_job.rb
rubyjobbuilderdsl-0.0.2 test/test_blocking_job.rb
rubyjobbuilderdsl-0.0.1 test/test_blocking_job.rb
rubyjobbuilderdsl-0.0.0 test/test_blocking_job.rb