Sha256: 153f6c054f52c77b820ab9b4a2f8c7d09da48c7e6386df9cbe5969950a06f26b

Contents?: true

Size: 571 Bytes

Versions: 5

Compression:

Stored size: 571 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:80/the_log_room")
    end

    sig { returns(T.untyped) }
    def stub_send_to_slack_log
      stub_request(:post, "https://slack.com:80/the_log_room")
        .to_return(
          status: 200,
          headers: { content_type: "application/json; charset=utf-8" },
          body: {}.to_json,
        )
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hephaestus-0.1.3 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.1.2 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.1.1 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.0.2 templates/test/support/webmocks/slack_webmock.rb
hephaestus-0.0.1 templates/test/support/webmocks/slack_webmock.rb