Sha256: 8818110b3e32cbcf9d17d7f90dc71bb681b0c7911ef330f361d40a8330d33ca4

Contents?: true

Size: 562 Bytes

Versions: 1

Compression:

Stored size: 562 Bytes

Contents

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

class TestHipchat < Test::Unit::TestCase
  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

1 entries across 1 versions & 1 rubygems

Version Path
god-0.13.4 test/test_hipchat.rb