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

Version Path
hephaestus-0.8.3 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.2 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.1 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.0 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.7.2 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.7 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.6.2 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.6.1 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.6 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.5.3 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.5.2 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.5.1 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.5 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.4.2 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.4.1 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.4 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.3.1 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.3 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.2.5 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.2.4 templates/test/support/webmocks/slack_webmock.rb