diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index c104845a6..b94ec1b11 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -11,7 +11,7 @@ # Readable test descriptions c.formatter = :documentation hosts.each do |host| - if host[:platform] =~ /el-7-x86_64/ and host[:hypervisor] =~ /docker/ + if host[:platform] =~ %r{el-7-x86_64} && host[:hypervisor] =~ %r{docker} on(host, "sed -i '/nodocs/d' /etc/yum.conf") end end