Sha256: 07598c634c148711ed6b990b7910e9e8765d2c4eb1c53769301f9a4c5f33d4aa
Contents?: true
Size: 550 Bytes
Versions: 2
Compression:
Stored size: 550 Bytes
Contents
require File.dirname(__FILE__) + '/helper' require 'tinder' 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
firenxis-god-0.11.0 | test/test_campfire.rb |
god-0.11.0 | test/test_campfire.rb |