Sha256: 4dcbecee02baadaf959d90d4580ecbdee07f34bf8d342a10bc8093177ca2751b

Contents?: true

Size: 842 Bytes

Versions: 1

Compression:

Stored size: 842 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Hall do

  context 'with picture' do
    #let(:hall_client) { Hall::Client.new("fake_room_token", "form_name", "http://www.mycompany.com/images/plant_icon.png") }

    #describe '#post_message' do
      #it 'shold successfully post a message' do
        #VCR.use_cassette('hall_api', :record => :once) do
          #hall_client.post_message('my text').response.code.should eq "201"
        #end
      #end
    #end
  end

  context 'without picture' do
     let(:hall_client) { Hall::Client.new("fake_room_token", "form_name") }

    describe '#post_message' do
      it 'shold successfully post a message' do
        VCR.use_cassette('hall_api') do
          hall_client.post_message('my text').response.code.should eq "201"
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hall-0.0.4 spec/hall_spec.rb