X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Facceptance%2Fintersection_spec.rb;h=75dfe871cf7cd0d1089113eeaf2c4cf7df59187a;hb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f;hp=66b86529786c44148c20982698772c35ed9a4818;hpb=ad88f67c13ae0f1a08936dad643f1e3509ab5f40;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/spec/acceptance/intersection_spec.rb b/3rdparty/modules/stdlib/spec/acceptance/intersection_spec.rb old mode 100755 new mode 100644 index 66b865297..75dfe871c --- a/3rdparty/modules/stdlib/spec/acceptance/intersection_spec.rb +++ b/3rdparty/modules/stdlib/spec/acceptance/intersection_spec.rb @@ -1,10 +1,8 @@ -#! /usr/bin/env ruby -S rspec require 'spec_helper_acceptance' -describe 'intersection function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do +describe 'intersection function' do describe 'success' do - it 'intersections arrays' do - pp = <<-EOS + pp = <<-DOC $a = ['aaa','bbb','ccc'] $b = ['bbb','ccc','ddd','eee'] $c = ['bbb','ccc'] @@ -12,10 +10,10 @@ describe 'intersection function', :unless => UNSUPPORTED_PLATFORMS.include?(fact if $o == $c { notify { 'output correct': } } - EOS - + DOC + it 'intersections arrays' do apply_manifest(pp, :catch_failures => true) do |r| - expect(r.stdout).to match(/Notice: output correct/) + expect(r.stdout).to match(%r{Notice: output correct}) end end it 'intersections empty arrays'