Sha256: 038dde5da8b02039dd28f6e77e9ec5e75138a3be8bf51612f2fc88c64b332284

Contents?: true

Size: 799 Bytes

Versions: 4

Compression:

Stored size: 799 Bytes

Contents

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

describe "Ticketmaster::Provider::Zendesk" do
  before(:each) do 
    @ticketmaster = TicketMaster.new(:zendesk, {:account => 'ticketmaster', :username => 'foo', :password => '000000'})
    headers = {'Authorization' => 'Basic Zm9vOjAwMDAwMA==','Accept' => 'application/json'}
    ActiveResource::HttpMock.respond_to do |mock|
      mock.get '/search.json?query=status%3Aopen', headers, fixture_for('tickets', 'json'), 200
    end

  end

  it "should be able to instantiate a new instance" do
    @ticketmaster.should be_an_instance_of(TicketMaster)
    @ticketmaster.should be_a_kind_of(TicketMaster::Provider::Zendesk)
  end

  it "should be true with valid authentication" do 
    @ticketmaster.valid?.should be_true
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ticketmaster-zendesk-0.4.5 spec/ticketmaster-zendesk_spec.rb
ticketmaster-zendesk-0.4.4 spec/ticketmaster-zendesk_spec.rb
ticketmaster-zendesk-0.3.4 spec/ticketmaster-zendesk_spec.rb
ticketmaster-zendesk-0.3.3 spec/ticketmaster-zendesk_spec.rb