Sha256: 9a6ee9478b00ba282d8f2e33f60e6042a9bfb42dfbf7d9ee0f704d30b2983594
Contents?: true
Size: 1.06 KB
Versions: 20
Compression:
Stored size: 1.06 KB
Contents
shared_examples_for "rails_3_activity_logging_model" 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
20 entries across 20 versions & 1 rubygems