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

Version Path
god-0.13.4 test/test_campfire.rb
god-0.13.3 test/test_campfire.rb
god-0.13.2 test/test_campfire.rb
god-0.13.1 test/test_campfire.rb
god-0.13.0 test/test_campfire.rb
god-0.12.1 test/test_campfire.rb
god-0.12.0 test/test_campfire.rb