Sha256: b5c8a558ac17162aaa9322dce19facd765c8ea335d0ffa4a7f1d1b78e1beeb42

Contents?: true

Size: 559 Bytes

Versions: 3

Compression:

Stored size: 559 Bytes

Contents

require 'test_helper'

class CampfireTest < Test::Unit::TestCase
  context "campfire" do
    context "with room name" do      
      setup do
        @campfire = Kindling::Campfire.new(TEST_API_TOKEN, TEST_SUBDOMAIN)
      end
      
      should "send message if correct name" do
        Kindling::Request.expects(:rooms).returns(JSON.parse(fixture_file("rooms.json"))["rooms"])
        Kindling::Request.expects(:speak).with("test message", @campfire, TEST_ROOM_ID)
        @campfire.speak(TEST_ROOM_NAME, "test message")
      end        
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kindling-0.0.6 test/kindling/campfire_test.rb
kindling-0.0.5 test/kindling/campfire_test.rb
kindling-0.0.4 test/kindling/campfire_test.rb