Sha256: de87e48c4ce94f363c4f74cccd78b471dfd14ec3cd3a83398a5bff4ba266f023
Contents?: true
Size: 534 Bytes
Versions: 7
Compression:
Stored size: 534 Bytes
Contents
require File.dirname(__FILE__) + '/helper' class TestCampfire < Test::Unit::TestCase def setup @campfire = God::Contacts::Campfire.new end def test_exists God::Contacts::Campfire end def test_notify @campfire.subdomain = 'github' @campfire.token = 'abc' @campfire.room = 'danger' time = Time.now body = "[#{time.strftime('%H:%M:%S')}] host - msg" Marshmallow::Connection.any_instance.expects(:speak).with('danger', body) @campfire.notify('msg', time, 'prio', 'cat', 'host') end end
Version data entries
7 entries across 7 versions & 1 rubygems