Sha256: 95a47fef2adcdeac708a008f5e6dc8a544edafbd9b68e1db062fe0a8d36ca430
Contents?: true
Size: 613 Bytes
Versions: 1
Compression:
Stored size: 613 Bytes
Contents
require 'spec_helper' describe StatusNotifierHandler do let(:slack_params) do { enabled: true, webhook_url: "https://slacktest.com", 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chef-handler-status_notifier-0.3.0 | spec/status_notifier_spec.rb |