Sha256: 2c9beb80a7f2ce7ed86e6570708d9c3a2ef3f4dd73a32e9d283abe6fb72033ca

Contents?: true

Size: 414 Bytes

Versions: 34

Compression:

Stored size: 414 Bytes

Contents

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

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

  def test_notify
    assert_nothing_raised do
      g = God::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

34 entries across 34 versions & 8 rubygems

Version Path
dguettler-god-0.7.13.2 test/test_webhook.rb
dguettler-god-0.7.13.3 test/test_webhook.rb
eric-god-0.7.14 test/test_webhook.rb
jreynolds-god-0.7.13 test/test_webhook.rb
mathieuravaux-god-0.7.11 test/test_webhook.rb
mojombo-god-0.7.13 test/test_webhook.rb
mojombo-god-0.7.14 test/test_webhook.rb
mojombo-god-0.7.15 test/test_webhook.rb
mojombo-god-0.7.16 test/test_webhook.rb
mojombo-god-0.7.20 test/test_webhook.rb
obitum-god-0.7.14.1 test/test_webhook.rb
obitum-god-0.7.14 test/test_webhook.rb
god-0.10.1 test/test_webhook.rb
god-0.9.0 test/test_webhook.rb
olgen-god-0.9.2 test/test_webhook.rb
olgen-god-0.9.1 test/test_webhook.rb
olgen-god-0.9.0 test/test_webhook.rb
god-0.8.0 test/test_webhook.rb
olgen-god-0.8.2 test/test_webhook.rb
olgen-god-0.8.1 test/test_webhook.rb