Sha256: 831dfde249b3b76a85d3d144c3e18006dd79f90736afd671511db7ef20b8f5a5

Contents?: true

Size: 645 Bytes

Versions: 18

Compression:

Stored size: 645 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))

context "Login with bad password" do
	setup do
		begin
			CityGrid.login :username => "iamafakeuserandineverexisted", :password => 'sofakethatsmyname'
		rescue => ex
			return ex
		end
	end

	should("return an AccountNotFoundError"){ topic.instance_of? CityGridExceptions::AccountNotFoundError }
end

context "Login with no username" do
	setup do
		begin
			CityGrid.login :username => "", :password => 'sofakethatsmyname'
		rescue => ex
			return ex
		end
	end

	should("return an UsernameRequiredError"){ topic.instance_of? CityGridExceptions::UsernameRequiredError }	
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
citygrid_api-0.0.28 test/test_exceptions.rb
citygrid_api-0.0.27 test/test_exceptions.rb
citygrid_api-0.0.26 test/test_exceptions.rb
citygrid_api-0.0.25 test/test_exceptions.rb
citygrid_api-0.0.24 test/test_exceptions.rb
citygrid_api-0.0.23 test/test_exceptions.rb
citygrid_api-0.0.22 test/test_exceptions.rb
citygrid_api-0.0.21 test/test_exceptions.rb
citygrid_api-0.0.20 test/test_exceptions.rb
citygrid_api-0.0.19 test/test_exceptions.rb
citygrid_api-0.0.18 test/test_exceptions.rb
citygrid_api-0.0.17 test/test_exceptions.rb
citygrid_api-0.0.16 test/test_exceptions.rb
citygrid_api-0.0.15 test/test_exceptions.rb
citygrid_api-0.0.14 test/test_exceptions.rb
citygrid_api-0.0.13 test/test_exceptions.rb
citygrid_api-0.0.12 test/test_exceptions.rb
citygrid_api-0.0.11 test/test_exceptions.rb