Sha256: 457badd364ded698105137c38061dd30ed8e29d076d7486205df2514ac189042

Contents?: true

Size: 913 Bytes

Versions: 3

Compression:

Stored size: 913 Bytes

Contents

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

describe "Ticketmaster::Provider::Rally" do
  
  before(:each) do 
    @auth = {:url => 'https://community.rallydev.com/slm', 
             :username => 'ticketmaster-rally@simeonfosterwillbanks.com', 
             :password => 'Password'}
    @ticketmaster = TicketMaster.new(:rally, @auth)
  end

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

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

  it "should be a valid instance" do 
    @ticketmaster.valid?.should be_true
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ticketmaster-rally-0.1.2 spec/ticketmaster-rally_spec.rb
ticketmaster-rally-0.1.1 spec/ticketmaster-rally_spec.rb
ticketmaster-rally-0.1.0 spec/ticketmaster-rally_spec.rb