Sha256: e99b21c31e9c51133b881a7e98b212b33fcdcb4ce19c08a52b70b444f7446970

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 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 = {
      :api_key => 'api-key'
    }
    Keikokuc::NotificationList.new(defaults.merge(opts))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
keikokuc-0.8 spec/support/factories.rb