Sha256: aa506509391b288681c8a6ef2a283c6ee24a61b775dc0be92e359e4c016a2eee

Contents?: true

Size: 556 Bytes

Versions: 5

Compression:

Stored size: 556 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

class TestHipchat < Minitest::Test
  def setup
    @hipchat = God::Contacts::Hipchat.new
  end

  def test_exists
    God::Contacts::Hipchat
  end

  def test_notify
    @hipchat.token = 'ee64d6e2337310af'
    @hipchat.ssl = 'true'
    @hipchat.room = 'testroom'
    @hipchat.from = 'test'

    time = Time.now
    body = "[#{time.strftime('%H:%M:%S')}] host - msg"
    Marshmallow::Connection.any_instance.expects(:speak).with('testroom', body)
    @hipchat.notify('msg', time, 'prio', 'cat', 'host')
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
resurrected_god-0.14.0 test/test_hipchat.rb
mcproc-2016.2.20 test/test_hipchat.rb
god-0.13.7 test/test_hipchat.rb
god-0.13.6 test/test_hipchat.rb
god-0.13.5 test/test_hipchat.rb