Sha256: 6503e90ef1da5b8c27353de42031f2db194ce15337bc842fae5180680f740510

Contents?: true

Size: 721 Bytes

Versions: 4

Compression:

Stored size: 721 Bytes

Contents

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

describe "Ticketmaster::Provider::Lighthouse" do

  before(:each) do 
    @ticketmaster = TicketMaster.new(:lighthouse, {:account => 'ticketmaster', :token => '000000'})
    headers = {'X-LighthouseToken' => '000000'}
    ActiveResource::HttpMock.respond_to do |mock|
      mock.get '/projects.xml', headers, fixture_for('projects'), 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::Lighthouse)
  end

  it "should return true for a valid authentication" do 
    @ticketmaster.valid?.should be_true
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ticketmaster-lighthouse-0.7.9 spec/ticketmaster-lighthouse_spec.rb
ticketmaster-lighthouse-0.7.8 spec/ticketmaster-lighthouse_spec.rb
ticketmaster-lighthouse-0.6.8 spec/ticketmaster-lighthouse_spec.rb
ticketmaster-lighthouse-0.6.7 spec/ticketmaster-lighthouse_spec.rb