Sha256: 40710d8fb1bdb8bfdfb0f662082f52c414b8c035fcf1435fe97b03cb208c8c00
Contents?: true
Size: 508 Bytes
Versions: 3
Compression:
Stored size: 508 Bytes
Contents
module Factories def build_notification(opts = {}) defaults = { :message => 'Your database is over limits', :target_name => 'cloudy-skies-243', :severity => 'info', :account_email => 'harold@heroku.com' } Keikokuc::Notification.new(defaults.merge(opts)) end def build_notification_list(opts = {}) defaults = { :user => 'user@example.com', :password => 'pass' } Keikokuc::NotificationList.new(defaults.merge(opts)) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
keikokuc-0.7 | spec/support/factories.rb |
keikokuc-0.6 | spec/support/factories.rb |
keikokuc-0.5 | spec/support/factories.rb |