Module: Hephaestus::Webmocks::SlackWebmock

Defined in:
lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb

Instance Method Summary collapse

Instance Method Details

#assert_requested_send_to_slack_logObject



7
8
9
# File 'lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb', line 7

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

#stub_send_to_slack_logObject



11
12
13
14
15
16
17
18
# File 'lib/hephaestus/support/hephaestus/webmocks/slack_webmock.rb', line 11

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