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.8.15.5 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.15.4 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.15.3 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.15.2 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.15.1 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.15 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.14 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.13 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.12.2 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.12.1 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.12 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.11 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.10 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.9.2 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.9.1 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.9 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.8 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.7.5 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.7.4 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.7.3 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb