Sha256: 971ef0a02ddfcf0ba5f0e17abedc736e05c947105a64082f493a65fa72327f2a
Contents?: true
Size: 1.12 KB
Versions: 4
Compression:
Stored size: 1.12 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "User with activity logging submodule" do # ----------------- PLUGIN CONFIGURATION ----------------------- describe User, "loaded plugin configuration" do before(:all) do sorcery_reload!([:activity_logging]) end after(:each) do User.sorcery_config.reset! end it "should allow configuration option 'last_login_at_attribute_name'" do sorcery_model_property_set(:last_login_at_attribute_name, :login_time) User.sorcery_config.last_login_at_attribute_name.should equal(:login_time) end it "should allow configuration option 'last_logout_at_attribute_name'" do sorcery_model_property_set(:last_logout_at_attribute_name, :logout_time) User.sorcery_config.last_logout_at_attribute_name.should equal(:logout_time) end it "should allow configuration option 'last_activity_at_attribute_name'" do sorcery_model_property_set(:last_activity_at_attribute_name, :activity_time) User.sorcery_config.last_activity_at_attribute_name.should equal(:activity_time) end end end
Version data entries
4 entries across 4 versions & 1 rubygems