Sha256: 40d75ceaa9c00f6e7f751ecf7d9af943e8f20574f0753780a37d19c8d9cf0ab3
Contents?: true
Size: 669 Bytes
Versions: 4
Compression:
Stored size: 669 Bytes
Contents
require 'spec_helper' describe StatusNotifierHandler do let(:slack_params) do { enabled: true, webhook_url: "https://hooks.slack.com/services/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", channel: "#test", username: "FaiNow-Test" } end let(:hipchat_params) do { enabled: true } end it 'should run without error' do allow_any_instance_of(StatusNotifierHandler).to receive(:send_to_slack).and_return(true) allow_any_instance_of(StatusNotifierHandler).to receive(:send_to_hipchat).and_return(true) expect{StatusNotifierHandler.new(slack_params, hipchat_params).report}.to_not raise_error end end
Version data entries
4 entries across 4 versions & 1 rubygems