From: David Swan Date: Thu, 20 Sep 2018 10:48:25 +0000 (+0100) Subject: (MODULES-7827) - Update to i18n test logic to account for puppet 6 X-Git-Tag: 6.1.0~8^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ede3eddf3ca5a64ca29c869fba33880b9acdc631;hp=7a52dc6237285c6d9d5e39a6f3f50ee8cba437b7;p=puppet-modules%2Fpuppetlabs-apt.git (MODULES-7827) - Update to i18n test logic to account for puppet 6 --- diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index a7bd4f4..a6f3d85 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -50,7 +50,7 @@ RSpec.configure do |c| # Configure all nodes in nodeset c.before :suite do - run_puppet_access_login(user: 'admin') if pe_install? && puppet_version =~ %r{(5\.\d\.\d)} + run_puppet_access_login(user: 'admin') if pe_install? && (Gem::Version.new(puppet_version) >= Gem::Version.new('5.0.0')) hosts.each do |host| # This will be removed, this is temporary to test localisation.