diff options
Diffstat (limited to 'test/lib/puppettest/support/assertions.rb')
-rw-r--r-- | test/lib/puppettest/support/assertions.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/lib/puppettest/support/assertions.rb b/test/lib/puppettest/support/assertions.rb index 528c7b8db..b918e28f6 100644 --- a/test/lib/puppettest/support/assertions.rb +++ b/test/lib/puppettest/support/assertions.rb @@ -42,12 +42,8 @@ module PuppetTest comp = nil msg = nil - unless events.is_a? Array - raise Puppet::DevError, "Incorrect call of assert_events" - end - if resources[-1].is_a? String - msg = resources.pop - end + raise Puppet::DevError, "Incorrect call of assert_events" unless events.is_a? Array + msg = resources.pop if resources[-1].is_a? String config = resources2catalog(*resources) transaction = Puppet::Transaction.new(config) |