Sha256: ed7f2d478f09a1d0db57065e50b3f34f2591274ea8e4e4c5220c812102267860

Contents?: true

Size: 655 Bytes

Versions: 2

Compression:

Stored size: 655 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper.rb'
 
class SessionTest < ActiveSupport::TestCase
  def test_authenticate_by_record
    session = UserSession.new
    assert session.respond_to?(:record)
    session.record = users(:john)
    assert_equal users(:john), session.record
  end
  
  def test_validate_by_nil_oauth_token
    session = UserSession.new
    assert !session.save
    #assert !redirecting_to_yahoo?
  end
  
  def test_auth_session
    session = UserSession.new
    #assert session.is_auth_session?
  end
  
  def test_validate_by_oauth
    session = UserSession.new
    assert !session.save
    #assert redirecting_to_yahoo?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authlogic-oauth-1.0.0 test/session_test.rb
authlogic-oauth-1.0.1 test/session_test.rb