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