Sha256: 811d65d3766c55b35e1a4788a8f09d9215a532400a872ab0cf5bbdc723789cd8

Contents?: true

Size: 556 Bytes

Versions: 21

Compression:

Stored size: 556 Bytes

Contents

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

Version data entries

21 entries across 21 versions & 6 rubygems

Version Path
cannikin-gattica-0.3.1 test/test_engine.rb
cannikin-gattica-0.3.3 test/test_engine.rb
cannikin-gattica-0.4.0 test/test_engine.rb
jeremyf-gattica-0.3.4 test/test_engine.rb
jeremyf-gattica-0.3.6 test/test_engine.rb
jeremyf-gattica-0.3.7 test/test_engine.rb
jeremyf-gattica-0.3.8 test/test_engine.rb
thieso2-gattica-0.3.3.1 test/test_engine.rb
thieso2-gattica-0.3.3.2 test/test_engine.rb
thieso2-gattica-0.3.3.3 test/test_engine.rb
thieso2-gattica-0.3.3.4 test/test_engine.rb
thieso2-gattica-0.3.3.5 test/test_engine.rb
gicodewarrior-gattica-0.5.2 test/test_engine.rb
gicodewarrior-gattica-0.5.1 test/test_engine.rb
gicodewarrior-gattica-0.5.0 test/test_engine.rb
tupalo-gattica-0.3.5 test/test_engine.rb
tupalo-gattica-0.3.4 test/test_engine.rb
tupalo-gattica-0.3.3 test/test_engine.rb
gattica-0.4.3 test/test_engine.rb
gattica-0.4.1 test/test_engine.rb