Sha256: 15de5b4766fb527baccf6439cb4503bfcf73690aa2ecb0936cba1a5250175f2e

Contents?: true

Size: 638 Bytes

Versions: 2

Compression:

Stored size: 638 Bytes

Contents

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

describe "Ticketmaster::Provider::Github" do

  it "Should be able to instantiate a new instance" do
    @github = TicketMaster.new(:Github, {:login => 'juanespinosa', :token => 'asdfghk'})
    @github.should be_an_instance_of(TicketMaster)
    @github.should be_a_kind_of(TicketMaster::Provider::Github)
  end

  it "Should show attempted authenticated if a token is presemt" do
    @github = TicketMaster.new(:Github, {:login => 'juanespinosa', :token => 'asdfghk'})
    @github.authorize
    TicketMaster::Provider::Github.api.authenticated?.should be_true
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ticketmaster-github-0.4.7 spec/ticketmaster-github_spec.rb
ticketmaster-github-0.4.6 spec/ticketmaster-github_spec.rb