Sha256: 5b2a325a94fc6399ec415bb8a632247172dc252da1a3a5bc1979ebbd07ba3c91
Contents?: true
Size: 549 Bytes
Versions: 2
Compression:
Stored size: 549 Bytes
Contents
require 'test_helper' class BearychatTest < Minitest::Test MOCK_HOOK_URI = 'https://hook.bearychat.com/mock/incoming/hook' def test_that_it_has_a_version_number refute_nil ::Bearychat::VERSION end def test_incoming_build_by_module assert_equal true, ::Bearychat.incoming(MOCK_HOOK_URI).is_a?(::Bearychat::Incoming) end def test_incoming_send incoming_stub = stub_request(:post, MOCK_HOOK_URI).with(body: hash_including(:payload)) ::Bearychat.incoming(MOCK_HOOK_URI).send assert_requested(incoming_stub) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bearychat-0.1.1 | test/bearychat_test.rb |
bearychat-0.1.0 | test/bearychat_test.rb |