spec/acceptance/tests/resource/cron/should_not_overwrite_crontab_file_on_file_read_error_spec.rb
# This test only makes sense for agents that shipped with PUP-9217's
# changes, so we do not want to run it on older agents.
This test only makes sense for agents that shipped with PUP-9217's
changes, so we do not want to run it on older agents.
This test only makes sense for agents that shipped with PUP - 9217 ' s changes so we do not want to run it on older agents .
def older_agent?(agent)
    puppet_version = Gem::Version.new(on(agent, puppet('--version')).stdout.chomp)
    minimum_puppet_version = if puppet_version < Gem::Version.new('6.0.0')
                               Gem::Version.new('5.5.9')
                             else
                               Gem::Version.new('6.0.5')
                             end
    puppet_version < minimum_puppet_version
  end
def older_agent? ( agent ) puppet_version = Gem :: Version . new ( on ( agent , puppet ( '--version' ) ) . stdout . chomp ) minimum_puppet_version = if puppet_version < Gem :: Version . new ( '6.0.0' ) Gem :: Version . new ( '5.5.9' ) else Gem :: Version . new ( '6.0.5' ) end puppet_version < minimum_puppet_version end
This test only makes sense for agents that shipped with PUP-9217's
changes, so we do not want to run it on older agents.
This test only makes sense for agents that shipped with PUP - 9217 ' s changes so we do not want to run it on older agents .
agent