Sha256: d14d406379f9d30ee0fc2219b23e67884fd09b95a559c286d6df82955b669ea7

Contents?: true

Size: 456 Bytes

Versions: 2

Compression:

Stored size: 456 Bytes

Contents

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

context "user log in with raw API" do
  setup do
    CityGrid.login :username => "GARYTEST", :password => 'pppppp'
  end
  should("return an authToken"){ topic.authToken }
end

context "user log in with session" do
  setup do
    CityGrid.session "GARYTEST", "pppppp"
  end
  should("have an auth_token"){ topic.auth_token }
  should("be logged in"){ topic.logged_in? }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
citygrid_api-0.0.9 test/api/accounts/test_user.rb
citygrid_api-0.0.7 test/api/accounts/test_user.rb