Sha256: bac07e750f6bb89b11919dec8508b32f935de4e2822aaa81541c03617efdf0ac
Contents?: true
Size: 528 Bytes
Versions: 5
Compression:
Stored size: 528 Bytes
Contents
require File.dirname(__FILE__) + '/helper' class TestCampfire < Minitest::Test 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
5 entries across 5 versions & 3 rubygems
Version | Path |
---|---|
resurrected_god-0.14.0 | test/test_campfire.rb |
mcproc-2016.2.20 | test/test_campfire.rb |
god-0.13.7 | test/test_campfire.rb |
god-0.13.6 | test/test_campfire.rb |
god-0.13.5 | test/test_campfire.rb |