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.7.2 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.7.1 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.7 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.6 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.5 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.4.1 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.4 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.3.4 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.3.3 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.3.2 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.3.1 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.3 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.2 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.1 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.8.0 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.7.2 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.7 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.6.2 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.6.1 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb
hephaestus-0.7.6 lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb