test/test_ticketmaster-fogbugz.rb in ticketmaster-fogbugz-0.1.1 vs test/test_ticketmaster-fogbugz.rb in ticketmaster-fogbugz-0.1.2

- old
+ new

@@ -1,11 +1,18 @@ require 'helper' class TestTicketmasterFogbugz < Test::Unit::TestCase context "checking for ticketmaster initialization" do - should "be able to instatiate a new instance" 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