spec/workflow/notifier/webhook_spec.rb in kuroko2-0.4.3 vs spec/workflow/notifier/webhook_spec.rb in kuroko2-0.4.4
- old
+ new
@@ -70,9 +70,20 @@
notifier.notify_finished
expect(stub).to have_been_requested
end
end
+ describe '#notify_back_to_normal' do
+ it 'sends back_to_normal message' do
+ stub.with { |req|
+ expect(JSON.parse(req.body)).to include("action"=>"notify_back_to_normal")
+ }
+
+ notifier.notify_back_to_normal
+ expect(stub).to have_been_requested
+ end
+ end
+
describe '#notify_retrying' do
context 'with notify_finished' do
before do
instance.job_definition.hipchat_notify_finished = true
instance.save!