Sha256: 372c2c3895933e65f8d5dd5b825b158dc292c6e31e64f97578c6d3e9f32b18dc
Contents?: true
Size: 592 Bytes
Versions: 3
Compression:
Stored size: 592 Bytes
Contents
require_relative './test_xml_generator' class TestXmlFlow < Test::Unit::TestCase def test_flow groovy_code = <<EOS build("ops-" + params["GERRIT_BRANCH"], GERRIT_REFSPEC: "refs/heads/${params["GERRIT_BRANCH"]}", GERRIT_BRANCH: params["GERRIT_BRANCH"]) EOS builder = JenkinsJob::Builder.new builder.flow 'foo' do dsl groovy_code end actual = builder.config_as_xml_node('foo') { 'buildNeedsWorkspace' => 'true', 'dsl' => groovy_code }.each do |k, v| assert_equal v, actual.xpath("./com.cloudbees.plugins.flow.BuildFlow/#{k}").text, k end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubyjobbuilderdsl-0.0.8 | test/test_flow.rb |
rubyjobbuilderdsl-0.0.6 | test/test_flow.rb |
rubyjobbuilderdsl-0.0.4 | test/test_flow.rb |