Sha256: bf50961b94378c764bff21fe74500fa02c85969719f72acbe3c82b836967a3f9

Contents?: true

Size: 530 Bytes

Versions: 2

Compression:

Stored size: 530 Bytes

Contents

require 'test_helper'

class UserSessionsControllerTest < ActionController::TestCase
  def setup
    @controller = UserSessionsController.new
    @request = ActionController::TestRequest.new
    @response = ActionController::TestResponse.new
  end

  def test_truth
    get :create, {:user_session => {:login => "bjohnson", :password => "benrocks"}}
    assert_equal 1, session[:user_id]
    assert_equal ["YmpvaG5zb24=\n:::2e8884187c71ff39af9ac05ebcaa0f40ab2432de51035aff8b0f491f890314d0"], cookies["user_credentials"]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authgasm-0.9.0 test_app/test/functional/user_sessions_controller_test.rb
authgasm-0.9.1 test_app/test/functional/user_sessions_controller_test.rb