From: Will Farrington Date: Thu, 23 May 2013 00:43:37 +0000 (-0700) Subject: Don't run certain tests under 1.8.7 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e0fd7299f60690e67bf5488ed2a04102a550aec0;p=puppet-stdlib.git Don't run certain tests under 1.8.7 --- diff --git a/spec/unit/puppet/parser/functions/validate_ipv6_address_spec.rb b/spec/unit/puppet/parser/functions/validate_ipv6_address_spec.rb index c74e8cd..1fe5304 100644 --- a/spec/unit/puppet/parser/functions/validate_ipv6_address_spec.rb +++ b/spec/unit/puppet/parser/functions/validate_ipv6_address_spec.rb @@ -36,12 +36,15 @@ describe Puppet::Parser::Functions.function(:validate_ipv6_address) do end end - describe "when given numbers" do - it "should not compile" do - Puppet[:code] = "validate_ipv6_address(1, 2)" - expect { - scope.compiler.compile - }.to raise_error(Puppet::ParseError, /not a valid IPv6 address/) + # 1.8.7 is EOL'd and also absolutely insane about ipv6 + unless RUBY_VERSION == '1.8.7' + describe "when given numbers" do + it "should not compile" do + Puppet[:code] = "validate_ipv6_address(1, 2)" + expect { + scope.compiler.compile + }.to raise_error(Puppet::ParseError, /not a valid IPv6 address/) + end end end