Sha256: 3857d1aff36a332b9c5ff2640eea1e89bb60fd6f9b18ade01f37b1cf75f29dd2
Contents?: true
Size: 613 Bytes
Versions: 4
Compression:
Stored size: 613 Bytes
Contents
# -*- coding: utf-8 -*- require File.expand_path('../../test_helper', __FILE__) module Peakium class WebhookTest < Test::Unit::TestCase should "webhooks should be listable" do @mock.expects(:get).once.returns(test_response(test_webhook_array)) w = Peakium::Webhook.all.data assert w.kind_of? Array assert w[0].kind_of? Peakium::Webhook end should "create should return a new webhook" do @mock.expects(:post).once.returns(test_response(test_webhook)) w = Peakium::Webhook.create assert_equal "http://example.com/webhook_endpoint/", w.url end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
peakium-0.1.4 | test/peakium/webhook_test.rb |
peakium-0.1.3 | test/peakium/webhook_test.rb |
peakium-0.1.2 | test/peakium/webhook_test.rb |
peakium-0.1.1 | test/peakium/webhook_test.rb |