Sha256: 9f3046787b9a6d0a616cb1b9f1c70a96eb5e988bcee8461f769216a02c96f55b
Contents?: true
Size: 786 Bytes
Versions: 3
Compression:
Stored size: 786 Bytes
Contents
unless Opal::RSpec::Compatibility.is_set_coerced_to_array? class RSpec::Core::Reporter # https://github.com/opal/opal/issues/858, fixed in Opal 0.9 # The problem is not directly related to the Reporter class (it has more to do with Formatter's call in add using a splat in the args list and right now, Opal does not run a to_a on a set that can be an array in the splat before the callee method takes over) def register_listener(listener, *notifications) # Without this, we won't flatten out each notification properly (e.g. example_started, finished, etc.) notifications = notifications[0].to_a if notifications[0].is_a? Set notifications.each do |notification| @listeners[notification.to_sym] << listener end true end end end
Version data entries
3 entries across 3 versions & 2 rubygems