String#to_a doesn't work under 1.9

This commit is contained in:
Tim Sharpe 2012-04-06 14:34:29 -07:00
parent aa73753614
commit eea6dd57c9
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ module RSpec::Puppet
def without(*args, &block)
params = args.shift
@expected_undef_params = (@expected_undef_params || []) | params.to_a
@expected_undef_params = (@expected_undef_params || []) | Array(params)
self
end