Sha256: ca5f08612957f63a4396a796a52424076df07263b9de69f5be90989f48682618

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

require_relative './test_xml_generator'

class TestXmlPollSCM < Test::Unit::TestCase
  def test_pollscm
    builder = JenkinsJob::Builder.new

    builder.freestyle 'foo' do
      pollscm '*/5 * * * *'
    end

    actual = builder.config_as_xml_node('foo')

    assert_equal '*/5 * * * *', actual.xpath('./project/triggers/hudson.triggers.SCMTrigger/spec').text
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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