Sha256: a53810aed7b2ad43227ea8e962c29c518ec61de60bc4e07a24ea7c1816e55111
Contents?: true
Size: 628 Bytes
Versions: 3
Compression:
Stored size: 628 Bytes
Contents
require "test_helper" # We forbid the use of AC::Parameters, and we have a test to that effect, but we # do not want a development dependency on `actionpack`, so we define it here. module ActionController class Parameters; end end module SessionTest class FoundationTest < ActiveSupport::TestCase def test_credentials_raise_if_not_a_hash session = UserSession.new e = assert_raises(TypeError) { session.credentials = ActionController::Parameters.new } assert_equal( ::Authlogic::Session::Foundation::InstanceMethods::E_AC_PARAMETERS, e.message ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
authlogic-4.2.0 | test/session_test/foundation_test.rb |
authlogic-4.1.1 | test/session_test/foundation_test.rb |
authlogic-4.1.0 | test/session_test/foundation_test.rb |