Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: v0.3.1
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (10 sloc) 0.556 kB
require File.dirname(__FILE__) + '/helper'
class TestEngine < Test::Unit::TestCase
def setup
end
def test_initialization
# assert Gattica.new({:email => 'anonymous@anon.com', :password => 'none'}) # you can initialize with a potentially invalid email and password
assert Gattica.new({:token => 'test'}) # you can initialize with a potentially invalid token
assert_raise GatticaError::NoLoginOrToken do Gattica.new() end # but, you must initialize with one or the other
end
end
Jump to Line
Something went wrong with that request. Please try again.