Sha256: df64d55b50f7b26716f4524f1bf2712fa6e624884f17185490a3a724de25947d

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

class TestWebhook < Test::Unit::TestCase
  def test_exists
    Monitr::Contacts::Webhook
  end

  def test_notify
    assert_nothing_raised do
      g = Monitr::Contacts::Webhook.new
      g.hook_url = 'http://test/switch'
      Net::HTTP.expects(:post_form)
      g.notify(:a, :b, :c, :d, :e)
      assert_equal "sent webhook to http://test/switch", g.info
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
monitr-0.0.1 test/test_webhook.rb