Method: RSpec::Core::Notifications::CustomNotification.for
- Defined in:
- lib/rspec/core/notifications.rb
.for(options = {}) ⇒ CustomNotification
Build a custom notification based on the supplied option key / values.
519 520 521 522 |
# File 'lib/rspec/core/notifications.rb', line 519 def self.for(={}) return NullNotification if .keys.empty? new(*.keys).new(*.values) end |