lib/riot/context_helpers.rb in riot-0.12.0 vs lib/riot/context_helpers.rb in riot-0.12.1

- old
+ new

@@ -120,9 +120,12 @@ private def new_assertion(scope, what, negative=false, &definition) if what.kind_of?(Symbol) definition ||= proc { topic.send(what) } description = "#{scope} ##{what}" + elsif what.kind_of?(Array) + definition ||= proc { topic.send(*what) } + description = "#{scope} ##{what.shift} with argument(s): #{what}" else description = "#{scope} #{what}" end (@assertions << assertion_class.new(description, negative, &definition)).last