Sha256: 3949eb78096ffeec5c0b217b070b74d42bcae01cdf03463199b9a8a43eff8192

Contents?: true

Size: 514 Bytes

Versions: 57

Compression:

Stored size: 514 Bytes

Contents

# typed: false
# frozen_string_literal: true

module Hephaestus
  module Webmocks
    module SlackWebmock
      def assert_requested_send_to_slack_log
        assert_requested(:post, "https://slack.com/the_log_room")
      end

      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
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
hephaestus-0.7.5.3 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.5.2 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.5.1 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.5 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.4.2 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.4.1 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.4 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.3.1 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.3 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.2.5 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.2.4 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.2.3 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.2.2 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.2.1 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.2 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.1 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.0 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb