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.7.2.3 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.2.2 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.2.1 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.2 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.1 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.7.0 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.6.4 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.6.3 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.6.2 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.6.1 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.6.0 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.5.2 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.5.1 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.5.0 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.4.0 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.3.1 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.2.3 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.2.2 templates/test/support/webmocks/slack_webmock.rb