Sha256: 7ff8c65c4d2c52e3500e9976bd7ea2454ee491c323f2b7a003ce90ca24402fac
Contents?: true
Size: 610 Bytes
Versions: 1
Compression:
Stored size: 610 Bytes
Contents
require "spec_helper" RSpec.describe PubsubNotifier::SlackClient do let(:client) { described_class.new } let(:message) { "message" } let(:webhook_url) { "https://hooks.slack.com/services/_____/_____/______" } before do expect(client).to receive(:webhook_url).and_return(webhook_url) expect(Net::HTTP).to receive(:post_form).and_return(true) end describe "#notify_success" do subject { client.notify_success(message) } it { is_expected.to be true } end describe "#notify_failure" do subject { client.notify_failure(message) } it { is_expected.to be true } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pubsub_notifier-0.1.2 | spec/lib/slack_client_spec.rb |