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
olgen-god-0.8.0 test/test_webhook.rb
god-0.7.22 test/test_webhook.rb
god-0.7.21 test/test_webhook.rb
god-0.7.20 test/test_webhook.rb
god-0.7.19 test/test_webhook.rb
god-0.7.18 test/test_webhook.rb
god-0.7.17 test/test_webhook.rb
god-0.7.16 test/test_webhook.rb
god-0.7.15 test/test_webhook.rb
god-0.7.14 test/test_webhook.rb
god-0.7.11 test/test_webhook.rb
god-0.7.10 test/test_webhook.rb
god-0.7.12 test/test_webhook.rb
god-0.7.13 test/test_webhook.rb