Sha256: d2e08372326ee1e66c3e5b7bf1d2ca0bfee3e6d2830cc34035f54ac51b165cdf

Contents?: true

Size: 565 Bytes

Versions: 58

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

58 entries across 58 versions & 1 rubygems

Version Path
hephaestus-0.8.11 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.10 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.9.2 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.9.1 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.9 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.8 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.7.5 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.7.4 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.7.3 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.7.2 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.7.1 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.7 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.6 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.5 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.4.1 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.4 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.3.4 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.3.3 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.3.2 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.8.3.1 templates/test/support/webmocks/slack_webmock.rb