Sha256: 07b046dc54f6b639ed759a62bd6dc8e4f9263364a1ed51660977cb2ea7870b55
Contents?: true
Size: 1.21 KB
Versions: 11
Compression:
Stored size: 1.21 KB
Contents
require File.dirname(__FILE__) + '/../test_helper.rb' class ActsAsAuthenticSettingsTest < ActiveSupport::TestCase must "account_merge_enabled default is disabled" do User.account_merge_enabled assert_false User.account_merge_enabled_value end must "account_merge_enabled set disabled" do User.account_merge_enabled false assert_false User.account_merge_enabled_value end must "account_merge_enabled set enabled" do User.account_merge_enabled true assert_true User.account_merge_enabled_value end must "account_mapping_mode default is :auto" do User.account_mapping_mode assert_equal :auto, User.account_mapping_mode_value end must "account_mapping_mode set :none" do User.account_mapping_mode :none assert_equal :none, User.account_mapping_mode_value assert_equal :none, User.account_mapping_mode_used end must "account_mapping_mode set :internal" do User.account_mapping_mode :internal assert_equal :internal, User.account_mapping_mode_value end must "invalid account_mapping_mode raises config error" do assert_raises( AuthlogicRpx::ActsAsAuthentic::ConfigurationError ) do User.account_mapping_mode :invalid end end end
Version data entries
11 entries across 11 versions & 3 rubygems