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