Sha256: d2e08372326ee1e66c3e5b7bf1d2ca0bfee3e6d2830cc34035f54ac51b165cdf
Contents?: true
Size: 565 Bytes
Versions: 38
Compression:
Stored size: 565 Bytes
Contents
# typed: false # frozen_string_literal: true module Webmocks module SlackWebmock extend T::Sig extend T::Helpers sig { returns(T.untyped) } def assert_requested_send_to_slack_log assert_requested(:post, "https://slack.com/the_log_room") end sig { returns(T.untyped) } def stub_send_to_slack_log stub_request(:post, "https://slack.com/the_log_room") .to_return( status: 200, headers: { content_type: "application/json; charset=utf-8" }, body: {}.to_json, ) end end end
Version data entries
38 entries across 38 versions & 1 rubygems