Sha256: cf8c8835ed543da4f5c86845f2d17287092b873e37b519a8f8eadde34b3e7ccb
Contents?: true
Size: 931 Bytes
Versions: 4
Compression:
Stored size: 931 Bytes
Contents
require 'helper' class TestTicketmasterFogbugz < Test::Unit::TestCase context "checking for ticketmaster initialization" do should "be able to instatiate a new instance with a hash with credentials where keys are symbols" do @fogbugz = TicketMaster.new(:fogbugz, :email => 'rafael@hybridgroup.com', :password => '12345', :uri => 'https://clutchapp.fogbugz.com') assert_equal true, @fogbugz.instance_of?(TicketMaster) assert_equal true, @fogbugz.kind_of?(TicketMaster::Provider::Fogbugz) end should "be able to instatiate a new instance with a hash with credentials where keys are strings" do @fogbugz = TicketMaster.new(:fogbugz, 'email' => 'rafael@hybridgroup.com', 'password' => '12345', 'uri' => 'https://clutchapp.fogbugz.com') assert_equal true, @fogbugz.instance_of?(TicketMaster) assert_equal true, @fogbugz.kind_of?(TicketMaster::Provider::Fogbugz) end end end
Version data entries
4 entries across 4 versions & 1 rubygems