spec/spec_helper_acceptance.rb
# Run it twice and test for idempotency
# And know value of custom fact during acceptance tests
Run it twice and test for idempotency
And know value of custom fact during acceptance tests
Run it twice and test for idempotency And know value of custom fact during acceptance tests
def apply2(pp)
  it 'works with no error' do
    apply_manifest(pp, catch_failures: true)
  end
  it 'gets custom fact on first run' do
    on(hosts, 'facter --json jenkins_plugins')
  end
  it 'works idempotently' do
    apply_manifest(pp, catch_changes: true)
  end
  it 'gets custom fact on second run' do
    on(hosts, 'facter --json jenkins_plugins')
  end
end
def apply2 ( pp ) it 'works with no error' do apply_manifest ( pp , catch_failures : true ) end it 'gets custom fact on first run' do on ( hosts , 'facter --json jenkins_plugins' ) end it 'works idempotently' do apply_manifest ( pp , catch_changes : true ) end it 'gets custom fact on second run' do on ( hosts , 'facter --json jenkins_plugins' ) end end
Run it twice and test for idempotency
And know value of custom fact during acceptance tests
Run it twice and test for idempotency And know value of custom fact during acceptance tests
pp