File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11require 'spec_helper'
22
33describe 'is_string' do
4+ let ( :undef_value ) do
5+ ( Puppet ::Util ::Package . versioncmp ( Puppet . version , '6.0.0' ) < 0 ) ? :undef : nil
6+ end
7+
48 it { is_expected . not_to eq ( nil ) }
59 it { is_expected . to run . with_params . and_raise_error ( Puppet ::ParseError , %r{wrong number of arguments}i ) }
610 it {
1822 it { is_expected . to run . with_params ( -3.7 ) . and_return ( false ) }
1923 it { is_expected . to run . with_params ( '-3.7' ) . and_return ( false ) }
2024
21- it { is_expected . to run . with_params ( undef ) . and_return ( false ) }
25+ it { is_expected . to run . with_params ( undef_value ) . and_return ( false ) }
2226 it { is_expected . to run . with_params ( [ ] ) . and_return ( false ) }
2327 it { is_expected . to run . with_params ( [ 1 ] ) . and_return ( false ) }
2428 it { is_expected . to run . with_params ( { } ) . and_return ( false ) }
You can’t perform that action at this time.
0 commit comments