Skip to content

Instantly share code, notes, and snippets.

@jwright
Created September 14, 2012 18:43
Show Gist options
  • Save jwright/3723858 to your computer and use it in GitHub Desktop.
Save jwright/3723858 to your computer and use it in GitHub Desktop.
Sorcery rake output
Using rake (0.9.2.2)
Using i18n (0.6.1)
Using multi_json (1.3.6)
Using activesupport (3.2.8)
Using builder (3.0.3)
Using activemodel (3.2.8)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.8)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.8)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.8)
Using activeresource (3.2.8)
Using addressable (2.2.8)
Using archive-tar-minitar (0.5.2)
Using bcrypt-ruby (3.0.1)
Using bundler (1.2.0)
Using nokogiri (1.5.5)
Using ffi (1.1.5)
Using childprocess (0.3.5)
Using libwebsocket (0.1.5)
Using rubyzip (0.9.9)
Using selenium-webdriver (2.25.0)
Using xpath (0.1.4)
Using capybara (1.1.2)
Using columnize (0.3.6)
Using diff-lcs (1.1.3)
Using multipart-post (1.1.5)
Using faraday (0.8.4)
Using httpauth (0.1)
Using json (1.7.5)
Using launchy (2.0.5)
Using ruby_core_source (0.1.5)
Using linecache19 (0.5.12)
Using oauth (0.4.7)
Using oauth2 (0.7.1)
Using rack-ssl (1.3.2)
Using rdoc (3.12)
Using thor (0.16.0)
Using railties (3.2.8)
Using rails (3.2.8)
Using rspec-core (2.7.1)
Using rspec-expectations (2.7.0)
Using rspec-mocks (2.7.0)
Using rspec (2.7.0)
Using rspec-rails (2.7.0)
Using ruby-debug-base19 (0.11.25)
Using ruby-debug19 (0.11.6)
Using simplecov-html (0.5.3)
Using simplecov (0.6.4)
Using sorcery (0.7.13) from source at ../../
Using sqlite3 (1.3.6)
Using sqlite3-ruby (1.3.3)
Using timecop (0.4.6)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
/Users/jwright/.rbenv/versions/1.9.2-p290/bin/ruby -S rspec --options /Users/jwright/Projects/sorcery/spec/rails3/spec/spec.opts spec/controller_activity_logging_spec.rb spec/controller_brute_force_protection_spec.rb spec/controller_http_basic_auth_spec.rb spec/controller_oauth2_spec.rb spec/controller_oauth_spec.rb spec/controller_remember_me_spec.rb spec/controller_session_timeout_spec.rb spec/controller_spec.rb spec/integration_spec.rb spec/user_activation_spec.rb spec/user_activity_logging_spec.rb spec/user_brute_force_protection_spec.rb spec/user_oauth_spec.rb spec/user_remember_me_spec.rb spec/user_reset_password_spec.rb spec/user_spec.rb
== CreateUsers: migrating ====================================================
-- create_table(:users)
-> 0.0008s
== CreateUsers: migrated (0.0009s) ===========================================
ApplicationController
== AddActivityLoggingToUsers: migrating ======================================
-- add_column(:users, :last_login_at, :datetime, {:default=>nil})
-> 0.0102s
-- add_column(:users, :last_logout_at, :datetime, {:default=>nil})
-> 0.0003s
-- add_column(:users, :last_activity_at, :datetime, {:default=>nil})
-> 0.0003s
-- add_index(:users, [:last_logout_at, :last_activity_at])
-> 0.0003s
== AddActivityLoggingToUsers: migrated (0.0113s) =============================
ApplicationController with activity logging features
should respond to #current_users
'current_users' should be empty when no users are logged in
should log login time on login
should log logout time on logout
should log last activity time when logged in
should update nothing but activity fields
'current_users' should hold the user object when 1 user is logged in
'current_users' should show all current_users, whether they have logged out before or not.
should not register login time if configured so
should not register logout time if configured so
should not register last activity time if configured so
== AddActivityLoggingToUsers: reverting ======================================
-- remove_index(:users, [:last_logout_at, :last_activity_at])
-> 0.0004s
-- remove_column(:users, :last_activity_at)
-> 0.0042s
-- remove_column(:users, :last_logout_at)
-> 0.0034s
-- remove_column(:users, :last_login_at)
-> 0.0032s
== AddActivityLoggingToUsers: reverted (0.0114s) =============================
ApplicationController
== AddBruteForceProtectionToUsers: migrating =================================
-- add_column(:users, :failed_logins_count, :integer, {:default=>0})
-> 0.0004s
-- add_column(:users, :lock_expires_at, :datetime, {:default=>nil})
-> 0.0003s
-- add_column(:users, :unlock_token, :string, {:default=>nil})
-> 0.0003s
== AddBruteForceProtectionToUsers: migrated (0.0011s) ========================
ApplicationController with brute force protection features
should count login retries (FAILED - 1)
should generate unlock token after user locked (FAILED - 2)
should unlock after entering unlock token (FAILED - 3)
should reset the counter on a good login (FAILED - 4)
should lock user when number of retries reached the limit (FAILED - 5)
should unlock after lock time period passes (FAILED - 6)
should not unlock if time period is 0 (permanent lock) (FAILED - 7)
== AddBruteForceProtectionToUsers: reverting =================================
-- remove_column(:users, :unlock_token)
-> 0.0038s
-- remove_column(:users, :lock_expires_at)
-> 0.0035s
-- remove_column(:users, :failed_logins_count)
-> 0.0033s
== AddBruteForceProtectionToUsers: reverted (0.0106s) ========================
ApplicationController
ApplicationController with http basic auth features
requests basic authentication when before_filter is used (FAILED - 8)
authenticates from http basic if credentials are sent (FAILED - 9)
fails authentication if credentials are wrong (FAILED - 10)
should allow configuration option 'controller_to_realm_map' (FAILED - 11)
should display the correct realm name configured for the controller (FAILED - 12)
should sign in the user's session on successful login (FAILED - 13)
ApplicationController
== CreateAuthentications: migrating ==========================================
-- create_table(:authentications)
-> 0.0007s
== CreateAuthentications: migrated (0.0008s) =================================
ApplicationController with OAuth features
'login_from' logins if user exists (FAILED - 14)
'login_from' fails if user doesn't exist (FAILED - 15)
on successful login_from the user should be redirected to the url he originally wanted (FAILED - 16)
login_at redirects correctly (github) (FAILED - 17)
'login_from' logins if user exists (github) (FAILED - 18)
'login_from' fails if user doesn't exist (github) (FAILED - 19)
on successful login_from the user should be redirected to the url he originally wanted (github) (FAILED - 20)
login_at redirects correctly (google) (FAILED - 21)
'login_from' logins if user exists (google) (FAILED - 22)
'login_from' fails if user doesn't exist (google) (FAILED - 23)
on successful login_from the user should be redirected to the url he originally wanted (google) (FAILED - 24)
login_at redirects correctly (liveid) (FAILED - 25)
'login_from' logins if user exists (liveid) (FAILED - 26)
'login_from' fails if user doesn't exist (liveid) (FAILED - 27)
on successful login_from the user should be redirected to the url he originally wanted (liveid) (FAILED - 28)
when callback_url begin with /
login_at redirects correctly (FAILED - 29)
when callback_url begin with http://
login_at redirects correctly (FAILED - 30)
ApplicationController
behaves like oauth2_controller
using 'create_from'
should create a new user (FAILED - 31)
should support nested attributes (FAILED - 32)
should not crash on missing nested attributes (FAILED - 33)
with a block
should not create user (FAILED - 34)
ApplicationController OAuth with User Activation features
== AddActivationToUsers: migrating ===========================================
-- add_column(:users, :activation_state, :string, {:default=>nil})
-> 0.0003s
-- add_column(:users, :activation_token, :string, {:default=>nil})
-> 0.0002s
-- add_column(:users, :activation_token_expires_at, :datetime, {:default=>nil})
-> 0.0002s
-- add_index(:users, :activation_token)
-> 0.0003s
== AddActivationToUsers: migrated (0.0014s) ==================================
should not send activation email to external users (FAILED - 35)
should not send external users an activation success email (FAILED - 36)
should not send activation email to external users (github) (FAILED - 37)
should not send external users an activation success email (github) (FAILED - 38)
should not send activation email to external users (google) (FAILED - 39)
should not send external users an activation success email (google) (FAILED - 40)
should not send activation email to external users (liveid) (FAILED - 41)
should not send external users an activation success email (liveid) (FAILED - 42)
ApplicationController OAuth with user activation features
== AddActivityLoggingToUsers: migrating ======================================
-- add_column(:users, :last_login_at, :datetime, {:default=>nil})
-> 0.0003s
-- add_column(:users, :last_logout_at, :datetime, {:default=>nil})
-> 0.0003s
-- add_column(:users, :last_activity_at, :datetime, {:default=>nil})
-> 0.0003s
-- add_index(:users, [:last_logout_at, :last_activity_at])
-> 0.0004s
== AddActivityLoggingToUsers: migrated (0.0014s) =============================
when facebook
should register login time
should not register login time if configured so
when github
should register login time
should not register login time if configured so
when google
should register login time
should not register login time if configured so
when liveid
should register login time
should not register login time if configured so
== CreateAuthentications: reverting ==========================================
-- drop_table(:authentications)
-> 0.0003s
== CreateAuthentications: reverted (0.0003s) =================================
== AddActivityLoggingToUsers: reverting ======================================
-- remove_index(:users, [:last_logout_at, :last_activity_at])
-> 0.0005s
-- remove_column(:users, :last_activity_at)
-> 0.0058s
-- remove_column(:users, :last_logout_at)
-> 0.0057s
-- remove_column(:users, :last_login_at)
-> 0.0053s
== AddActivityLoggingToUsers: reverted (0.0175s) =============================
ApplicationController OAuth with session timeout features
== CreateAuthentications: migrating ==========================================
-- create_table(:authentications)
-> 0.0007s
== CreateAuthentications: migrated (0.0007s) =================================
when facebook
should not reset session before session timeout (FAILED - 43)
should reset session after session timeout (FAILED - 44)
when github
should not reset session before session timeout (FAILED - 45)
should reset session after session timeout (FAILED - 46)
when google
should not reset session before session timeout (FAILED - 47)
should reset session after session timeout (FAILED - 48)
when liveid
should not reset session before session timeout (FAILED - 49)
should reset session after session timeout (FAILED - 50)
== CreateAuthentications: reverting ==========================================
-- drop_table(:authentications)
-> 0.0002s
== CreateAuthentications: reverted (0.0003s) =================================
ApplicationController
== CreateAuthentications: migrating ==========================================
-- create_table(:authentications)
-> 0.0007s
== CreateAuthentications: migrated (0.0007s) =================================
ApplicationController 'using external API to login'
logins if user exists (FAILED - 51)
'login_from' fails if user doesn't exist (FAILED - 52)
on successful 'login_from' the user should be redirected to the url he originally wanted (FAILED - 53)
when callback_url begin with /
login_at redirects correctly (FAILED - 54)
when callback_url begin with http://
login_at redirects correctly (FAILED - 55)
ApplicationController
behaves like oauth_controller
using 'create_from'
should create a new user (FAILED - 56)
should support nested attributes (FAILED - 57)
should not crash on missing nested attributes (FAILED - 58)
with a block
should not create user (FAILED - 59)
ApplicationController using OAuth with User Activation features
should not send activation email to external users (FAILED - 60)
should not send external users an activation success email (FAILED - 61)
ApplicationController OAuth with user activation features
== AddActivityLoggingToUsers: migrating ======================================
-- add_column(:users, :last_login_at, :datetime, {:default=>nil})
-> 0.0003s
-- add_column(:users, :last_logout_at, :datetime, {:default=>nil})
-> 0.0003s
-- add_column(:users, :last_activity_at, :datetime, {:default=>nil})
-> 0.0003s
-- add_index(:users, [:last_logout_at, :last_activity_at])
-> 0.0004s
== AddActivityLoggingToUsers: migrated (0.0015s) =============================
when twitter
should register login time
should not register login time if configured so
== CreateAuthentications: reverting ==========================================
-- drop_table(:authentications)
-> 0.0002s
== CreateAuthentications: reverted (0.0003s) =================================
== AddActivityLoggingToUsers: reverting ======================================
-- remove_index(:users, [:last_logout_at, :last_activity_at])
-> 0.0005s
-- remove_column(:users, :last_activity_at)
-> 0.0054s
-- remove_column(:users, :last_logout_at)
-> 0.0052s
-- remove_column(:users, :last_login_at)
-> 0.0050s
== AddActivityLoggingToUsers: reverted (0.0162s) =============================
ApplicationController OAuth with session timeout features
== CreateAuthentications: migrating ==========================================
-- create_table(:authentications)
-> 0.0006s
== CreateAuthentications: migrated (0.0007s) =================================
when twitter
should not reset session before session timeout (FAILED - 62)
should reset session after session timeout (FAILED - 63)
== CreateAuthentications: reverting ==========================================
-- drop_table(:authentications)
-> 0.0002s
== CreateAuthentications: reverted (0.0003s) =================================
ApplicationController
ApplicationController with remember me features
== AddRememberMeTokenToUsers: migrating ======================================
-- add_column(:users, :remember_me_token, :string, {:default=>nil})
-> 0.0005s
-- add_column(:users, :remember_me_token_expires_at, :datetime, {:default=>nil})
-> 0.0003s
-- add_index(:users, :remember_me_token)
-> 0.0004s
== AddRememberMeTokenToUsers: migrated (0.0013s) =============================
should set cookie on remember_me! (FAILED - 64)
should clear cookie on forget_me! (FAILED - 65)
login(username,password,remember_me) should login and remember (FAILED - 66)
logout should also forget_me! (FAILED - 67)
should login_from_cookie (FAILED - 68)
should not remember_me! when not asked to, even if third parameter is used (FAILED - 69)
should not remember_me! when not asked to (FAILED - 70)
should be nil (FAILED - 71)
auto_login(user) should login a user instance without remembering (FAILED - 72)
auto_login(user, true) should login a user instance with remembering (FAILED - 73)
== AddRememberMeTokenToUsers: reverting ======================================
-- remove_index(:users, :remember_me_token)
-> 0.0005s
-- remove_column(:users, :remember_me_token_expires_at)
-> 0.0053s
-- remove_column(:users, :remember_me_token)
-> 0.0049s
== AddRememberMeTokenToUsers: reverted (0.0109s) =============================
ApplicationController
ApplicationController with session timeout features
should not reset session before session timeout (FAILED - 74)
should reset session after session timeout (FAILED - 75)
with 'session_timeout_from_last_action'
should not logout if there was activity (FAILED - 76)
with 'session_timeout_from_last_action' should logout if there was no activity (FAILED - 77)
ApplicationController
ApplicationController plugin configuration
should enable configuration option 'user_class'
should enable configuration option 'not_authenticated_action'
ApplicationController when activated with sorcery
should equal :my_action (FAILED - 78)
(FAILED - 79)
(FAILED - 80)
(FAILED - 81)
login(username,password) should return the user when success and set the session with user.id (FAILED - 82)
login(email,password) should return the user when success and set the session with user.id (FAILED - 83)
login(username,password) should return nil and not set the session when failure (FAILED - 84)
login(username,password) should return nil and not set the session when upper case username (FAILED - 85)
login(username,password) should return the user and set the session with user.id when upper case username and config is downcase before authenticating (FAILED - 86)
login(username,password) should return nil and not set the session when user was created with upper case username, config is default, and log in username is lower case (FAILED - 87)
login(username,password) should return the user and set the session with user.id when user was created with upper case username and config is downcase before authenticating (FAILED - 88)
logout should clear the session (FAILED - 89)
logged_in? should return true if logged in (FAILED - 90)
logged_in? should return false if not logged in (FAILED - 91)
current_user should return the user instance if logged in (FAILED - 92)
current_user should return false if not logged in (FAILED - 93)
(FAILED - 94)
should call the configured 'not_authenticated_action' when authenticate before_filter fails (FAILED - 95)
require_login before_filter should save the url that the user originally wanted (FAILED - 96)
require_login before_filter should not save the url that the user originally wanted upon all non-get http methods (FAILED - 97)
on successful login the user should be redirected to the url he originally wanted (FAILED - 98)
(FAILED - 99)
auto_login(user) should login a user instance (FAILED - 100)
auto_login(user) should work even if current_user was already set to false (FAILED - 101)
User with activation submodule
behaves like rails_3_activation_model
User loaded plugin configuration
should enable configuration option 'activation_state_attribute_name'
should enable configuration option 'activation_token_attribute_name'
should enable configuration option 'user_activation_mailer'
should enable configuration option 'activation_needed_email_method_name'
should enable configuration option 'activation_success_email_method_name'
should enable configuration option 'activation_mailer_disabled'
if mailer is nil and mailer is enabled, throw exception!
if mailer is disabled and mailer is nil, do NOT throw exception
User activation process
should initialize user state to 'pending' (FAILED - 102)
should not raise Exception (FAILED - 103)
should clear activation code and change state to 'active' on activation (FAILED - 104)
mailer is enabled
should send the user an activation email (FAILED - 105)
subsequent saves do not send activation email (FAILED - 106)
should send the user an activation success email on successful activation (FAILED - 107)
subsequent saves do not send activation success email (FAILED - 108)
activation needed email is optional (FAILED - 109)
activation success email is optional (FAILED - 110)
mailer has been disabled
should not send the user an activation email (FAILED - 111)
should not send the user an activation success email on successful activation (FAILED - 112)
User prevent non-active login feature
should not allow a non-active user to authenticate (FAILED - 113)
should allow a non-active user to authenticate if configured so (FAILED - 114)
User load_from_activation_token
load_from_activation_token should return user when token is found (FAILED - 115)
load_from_activation_token should NOT return user when token is NOT found (FAILED - 116)
load_from_activation_token should return user when token is found and not expired (FAILED - 117)
load_from_activation_token should NOT return user when token is found and expired (FAILED - 118)
load_from_activation_token should return nil if token is blank
load_from_activation_token should always be valid if expiration period is nil (FAILED - 119)
== AddActivationToUsers: reverting ===========================================
-- remove_index(:users, :activation_token)
-> 0.0004s
-- remove_column(:users, :activation_token_expires_at)
-> 0.0370s
-- remove_column(:users, :activation_token)
-> 0.0034s
-- remove_column(:users, :activation_state)
-> 0.0032s
== AddActivationToUsers: reverted (0.0443s) ==================================
User with activity logging submodule
behaves like rails_3_activity_logging_model
User loaded plugin configuration
should allow configuration option 'last_login_at_attribute_name'
should allow configuration option 'last_logout_at_attribute_name'
should allow configuration option 'last_activity_at_attribute_name'
User with brute_force_protection submodule
== AddBruteForceProtectionToUsers: migrating =================================
-- add_column(:users, :failed_logins_count, :integer, {:default=>0})
-> 0.0003s
-- add_column(:users, :lock_expires_at, :datetime, {:default=>nil})
-> 0.0003s
-- add_column(:users, :unlock_token, :string, {:default=>nil})
-> 0.0002s
== AddBruteForceProtectionToUsers: migrated (0.0010s) ========================
behaves like rails_3_brute_force_protection_model
User loaded plugin configuration
(FAILED - 120)
(FAILED - 121)
should enable configuration option 'failed_logins_count_attribute_name' (FAILED - 122)
should enable configuration option 'lock_expires_at_attribute_name' (FAILED - 123)
should enable configuration option 'consecutive_login_retries_amount_allowed' (FAILED - 124)
should enable configuration option 'login_lock_time_period' (FAILED - 125)
== AddBruteForceProtectionToUsers: reverting =================================
-- remove_column(:users, :unlock_token)
-> 0.0039s
-- remove_column(:users, :lock_expires_at)
-> 0.0034s
-- remove_column(:users, :failed_logins_count)
-> 0.0033s
== AddBruteForceProtectionToUsers: reverted (0.0107s) ========================
User with oauth submodule
== CreateAuthentications: migrating ==========================================
-- create_table(:authentications)
-> 0.0006s
== CreateAuthentications: migrated (0.0007s) =================================
behaves like rails_3_oauth_model
User loaded plugin configuration
should respond to 'load_from_provider' (FAILED - 126)
'load_from_provider' should load user if exists (FAILED - 127)
'load_from_provider' should return nil if user doesn't exist (FAILED - 128)
== CreateAuthentications: reverting ==========================================
-- drop_table(:authentications)
-> 0.0002s
== CreateAuthentications: reverted (0.0003s) =================================
User with remember_me submodule
== AddRememberMeTokenToUsers: migrating ======================================
-- add_column(:users, :remember_me_token, :string, {:default=>nil})
-> 0.0003s
-- add_column(:users, :remember_me_token_expires_at, :datetime, {:default=>nil})
-> 0.0002s
-- add_index(:users, :remember_me_token)
-> 0.0004s
== AddRememberMeTokenToUsers: migrated (0.0010s) =============================
behaves like rails_3_remember_me_model
User loaded plugin configuration
should allow configuration option 'remember_me_token_attribute_name' (FAILED - 129)
should allow configuration option 'remember_me_token_expires_at_attribute_name' (FAILED - 130)
(FAILED - 131)
(FAILED - 132)
should generate a new token on 'remember_me!' (FAILED - 133)
should set an expiration based on 'remember_me_for' attribute (FAILED - 134)
should delete the token and expiration on 'forget_me!' (FAILED - 135)
== AddRememberMeTokenToUsers: reverting ======================================
-- remove_index(:users, :remember_me_token)
-> 0.0004s
-- remove_column(:users, :remember_me_token_expires_at)
-> 0.0037s
-- remove_column(:users, :remember_me_token)
-> 0.0396s
== AddRememberMeTokenToUsers: reverted (0.0439s) =============================
User with reset_password submodule
== AddResetPasswordToUsers: migrating ========================================
-- add_column(:users, :reset_password_token, :string, {:default=>nil})
-> 0.0003s
-- add_column(:users, :reset_password_token_expires_at, :datetime, {:default=>nil})
-> 0.0003s
-- add_column(:users, :reset_password_email_sent_at, :datetime, {:default=>nil})
-> 0.0003s
== AddResetPasswordToUsers: migrated (0.0010s) ===============================
behaves like rails_3_reset_password_model
User loaded plugin configuration
should allow configuration option 'reset_password_token_attribute_name'
should allow configuration option 'reset_password_mailer'
should enable configuration option 'reset_password_mailer_disabled'
if mailer is nil and mailer is enabled, throw exception!
if mailer is disabled and mailer is nil, do NOT throw exception
should allow configuration option 'reset_password_email_method_name'
should allow configuration option 'reset_password_expiration_period'
should allow configuration option 'reset_password_email_sent_at_attribute_name'
should allow configuration option 'reset_password_time_between_emails'
API
(FAILED - 136)
(FAILED - 137)
should respond to .load_from_reset_password_token (FAILED - 138)
User when activated with sorcery
load_from_reset_password_token should return user when token is found (FAILED - 139)
load_from_reset_password_token should NOT return user when token is NOT found (FAILED - 140)
load_from_reset_password_token should return user when token is found and not expired (FAILED - 141)
load_from_reset_password_token should NOT return user when token is found and expired (FAILED - 142)
load_from_reset_password_token should always be valid if expiration period is nil (FAILED - 143)
load_from_reset_password_token should return nil if token is blank
'deliver_reset_password_instructions!' should generate a reset_password_token (FAILED - 144)
the reset_password_token should be random (FAILED - 145)
when change_password! is called, should delete reset_password_token (FAILED - 146)
should return false if time between emails has not passed since last email (FAILED - 147)
should encrypt properly on reset (FAILED - 148)
mailer is enabled
should send an email on reset (FAILED - 149)
should not send an email if time between emails has not passed since last email (FAILED - 150)
should send an email if time between emails has passed since last email (FAILED - 151)
mailer is disabled
should send an email on reset (FAILED - 152)
should not send an email if time between emails has not passed since last email (FAILED - 153)
should send an email if time between emails has passed since last email (FAILED - 154)
== AddResetPasswordToUsers: reverting ========================================
-- remove_column(:users, :reset_password_email_sent_at)
-> 0.0040s
-- remove_column(:users, :reset_password_token_expires_at)
-> 0.0035s
-- remove_column(:users, :reset_password_token)
-> 0.0032s
== AddResetPasswordToUsers: reverted (0.0108s) ===============================
User with no submodules (core)
User when app has plugin loaded
should respond to the plugin activation class method
User should respond_to .authenticates_with_sorcery!
it should behave like rails_3_core_model
User loaded plugin configuration
should enable configuration option 'username_attribute_names'
should enable configuration option 'password_attribute_name'
should enable configuration option 'email_attribute_name'
should enable configuration option 'crypted_password_attribute_name'
should enable configuration option 'salt_attribute_name'
should enable configuration option 'encryption_algorithm'
should enable configuration option 'encryption_key'
should enable configuration option 'custom_encryption_provider'
should enable configuration option 'salt_join_token'
should enable configuration option 'stretches'
User when activated with sorcery
should respond to class method authenticate
authenticate should return true if credentials are good (FAILED - 155)
authenticate should return false if credentials are bad (FAILED - 156)
should respond to #encrypt
subclass should inherit config if defined so
subclass should not inherit config if not defined so
User registration
by default, encryption_provider should not be nil
should encrypt password when a new user is saved (FAILED - 157)
should clear the virtual password field if the encryption process worked (FAILED - 158)
should not clear the virtual password field if save failed due to validity (FAILED - 159)
should not clear the virtual password field if save failed due to exception (FAILED - 160)
should not encrypt the password twice when a user is updated (FAILED - 161)
should replace the crypted_password in case a new password is set (FAILED - 162)
User special encryption cases
should work with no password encryption (FAILED - 163)
should work with custom password encryption (FAILED - 164)
if encryption algo is aes256, it should set key to crypto provider
if encryption algo is aes256, it should set key to crypto provider, even if attributes are set in reverse
if encryption algo is md5 it should work
if encryption algo is sha1 it should work
if encryption algo is sha256 it should work
if encryption algo is sha512 it should work
salt should be random for each user and saved in db (FAILED - 165)
if salt is set should use it to encrypt (FAILED - 166)
if salt_join_token is set should use it to encrypt (FAILED - 167)
User ORM adapter
find_by_username should work as expected (FAILED - 168)
find_by_username should work as expected with multiple username attributes (FAILED - 169)
find_by_email should work as expected (FAILED - 170)
User external users
== CreateAuthentications: migrating ==========================================
-- create_table(:authentications)
-> 0.0007s
== CreateAuthentications: migrated (0.0008s) =================================
it should behave like external_user
should respond to 'external?' (FAILED - 171)
external? should be false for regular users (FAILED - 172)
external? should be true for external users (FAILED - 173)
== CreateAuthentications: reverting ==========================================
-- drop_table(:authentications)
-> 0.0002s
== CreateAuthentications: reverted (0.0003s) =================================
== CreateUsers: reverting ====================================================
-- drop_table(:users)
-> 0.0002s
== CreateUsers: reverted (0.0002s) ===========================================
Failures:
1) ApplicationController ApplicationController with brute force protection features should count login retries
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_brute_force_protection_spec.rb:16:in `block (3 levels) in <top (required)>'
2) ApplicationController ApplicationController with brute force protection features should generate unlock token after user locked
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_brute_force_protection_spec.rb:16:in `block (3 levels) in <top (required)>'
3) ApplicationController ApplicationController with brute force protection features should unlock after entering unlock token
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_brute_force_protection_spec.rb:16:in `block (3 levels) in <top (required)>'
4) ApplicationController ApplicationController with brute force protection features should reset the counter on a good login
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_brute_force_protection_spec.rb:16:in `block (3 levels) in <top (required)>'
5) ApplicationController ApplicationController with brute force protection features should lock user when number of retries reached the limit
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_brute_force_protection_spec.rb:16:in `block (3 levels) in <top (required)>'
6) ApplicationController ApplicationController with brute force protection features should unlock after lock time period passes
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_brute_force_protection_spec.rb:16:in `block (3 levels) in <top (required)>'
7) ApplicationController ApplicationController with brute force protection features should not unlock if time period is 0 (permanent lock)
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_brute_force_protection_spec.rb:16:in `block (3 levels) in <top (required)>'
8) ApplicationController ApplicationController with http basic auth features requests basic authentication when before_filter is used
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_http_basic_auth_spec.rb:9:in `block (3 levels) in <top (required)>'
9) ApplicationController ApplicationController with http basic auth features authenticates from http basic if credentials are sent
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_http_basic_auth_spec.rb:9:in `block (3 levels) in <top (required)>'
10) ApplicationController ApplicationController with http basic auth features fails authentication if credentials are wrong
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_http_basic_auth_spec.rb:9:in `block (3 levels) in <top (required)>'
11) ApplicationController ApplicationController with http basic auth features should allow configuration option 'controller_to_realm_map'
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_http_basic_auth_spec.rb:9:in `block (3 levels) in <top (required)>'
12) ApplicationController ApplicationController with http basic auth features should display the correct realm name configured for the controller
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_http_basic_auth_spec.rb:9:in `block (3 levels) in <top (required)>'
13) ApplicationController ApplicationController with http basic auth features should sign in the user's session on successful login
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_http_basic_auth_spec.rb:9:in `block (3 levels) in <top (required)>'
14) ApplicationController ApplicationController with OAuth features 'login_from' logins if user exists
Failure/Error: create_new_external_user(:facebook)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:93:in `block (3 levels) in <top (required)>'
15) ApplicationController ApplicationController with OAuth features 'login_from' fails if user doesn't exist
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_oauth2_spec.rb:100:in `block (3 levels) in <top (required)>'
16) ApplicationController ApplicationController with OAuth features on successful login_from the user should be redirected to the url he originally wanted
Failure/Error: create_new_external_user(:facebook)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:107:in `block (3 levels) in <top (required)>'
17) ApplicationController ApplicationController with OAuth features login_at redirects correctly (github)
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_oauth2_spec.rb:115:in `block (3 levels) in <top (required)>'
18) ApplicationController ApplicationController with OAuth features 'login_from' logins if user exists (github)
Failure/Error: create_new_external_user(:github)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:123:in `block (3 levels) in <top (required)>'
19) ApplicationController ApplicationController with OAuth features 'login_from' fails if user doesn't exist (github)
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_oauth2_spec.rb:130:in `block (3 levels) in <top (required)>'
20) ApplicationController ApplicationController with OAuth features on successful login_from the user should be redirected to the url he originally wanted (github)
Failure/Error: create_new_external_user(:github)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:137:in `block (3 levels) in <top (required)>'
21) ApplicationController ApplicationController with OAuth features login_at redirects correctly (google)
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_oauth2_spec.rb:145:in `block (3 levels) in <top (required)>'
22) ApplicationController ApplicationController with OAuth features 'login_from' logins if user exists (google)
Failure/Error: create_new_external_user(:google)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:153:in `block (3 levels) in <top (required)>'
23) ApplicationController ApplicationController with OAuth features 'login_from' fails if user doesn't exist (google)
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_oauth2_spec.rb:160:in `block (3 levels) in <top (required)>'
24) ApplicationController ApplicationController with OAuth features on successful login_from the user should be redirected to the url he originally wanted (google)
Failure/Error: create_new_external_user(:google)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:167:in `block (3 levels) in <top (required)>'
25) ApplicationController ApplicationController with OAuth features login_at redirects correctly (liveid)
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_oauth2_spec.rb:175:in `block (3 levels) in <top (required)>'
26) ApplicationController ApplicationController with OAuth features 'login_from' logins if user exists (liveid)
Failure/Error: create_new_external_user(:liveid)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:183:in `block (3 levels) in <top (required)>'
27) ApplicationController ApplicationController with OAuth features 'login_from' fails if user doesn't exist (liveid)
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_oauth2_spec.rb:190:in `block (3 levels) in <top (required)>'
28) ApplicationController ApplicationController with OAuth features on successful login_from the user should be redirected to the url he originally wanted (liveid)
Failure/Error: create_new_external_user(:liveid)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:197:in `block (3 levels) in <top (required)>'
29) ApplicationController ApplicationController ApplicationController with OAuth features when callback_url begin with / login_at redirects correctly
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_oauth2_spec.rb:72:in `block (4 levels) in <top (required)>'
30) ApplicationController ApplicationController ApplicationController with OAuth features when callback_url begin with http:// login_at redirects correctly
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_oauth2_spec.rb:84:in `block (4 levels) in <top (required)>'
31) ApplicationController ApplicationController behaves like oauth2_controller using 'create_from' should create a new user
Failure/Error: get :test_create_from_provider, :provider => "facebook"
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "oauth2_controller" called from ./spec/controller_oauth2_spec.rb:207
# /Users/jwright/Projects/sorcery/lib/sorcery/controller/submodules/external.rb:147:in `block in create_from'
# /Users/jwright/Projects/sorcery/lib/sorcery/controller/submodules/external.rb:137:in `create_from'
# ./app/controllers/application_controller.rb:183:in `test_create_from_provider'
# /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth2_shared_examples.rb:13:in `block (4 levels) in <top (required)>'
# /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth2_shared_examples.rb:12:in `block (3 levels) in <top (required)>'
32) ApplicationController ApplicationController behaves like oauth2_controller using 'create_from' should support nested attributes
Failure/Error: get :test_create_from_provider, :provider => "facebook"
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "oauth2_controller" called from ./spec/controller_oauth2_spec.rb:207
# /Users/jwright/Projects/sorcery/lib/sorcery/controller/submodules/external.rb:147:in `block in create_from'
# /Users/jwright/Projects/sorcery/lib/sorcery/controller/submodules/external.rb:137:in `create_from'
# ./app/controllers/application_controller.rb:183:in `test_create_from_provider'
# /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth2_shared_examples.rb:22:in `block (4 levels) in <top (required)>'
# /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth2_shared_examples.rb:21:in `block (3 levels) in <top (required)>'
33) ApplicationController ApplicationController behaves like oauth2_controller using 'create_from' should not crash on missing nested attributes
Failure/Error: get :test_create_from_provider, :provider => "facebook"
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "oauth2_controller" called from ./spec/controller_oauth2_spec.rb:207
# /Users/jwright/Projects/sorcery/lib/sorcery/controller/submodules/external.rb:147:in `block in create_from'
# /Users/jwright/Projects/sorcery/lib/sorcery/controller/submodules/external.rb:137:in `create_from'
# ./app/controllers/application_controller.rb:183:in `test_create_from_provider'
# /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth2_shared_examples.rb:31:in `block (4 levels) in <top (required)>'
# /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth2_shared_examples.rb:30:in `block (3 levels) in <top (required)>'
34) ApplicationController ApplicationController behaves like oauth2_controller ApplicationController ApplicationController behaves like oauth2_controller using 'create_from' with a block should not create user
Failure/Error: user.save!(:validate => false)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "oauth2_controller" called from ./spec/controller_oauth2_spec.rb:207
# /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth2_shared_examples.rb:41:in `block (4 levels) in <top (required)>'
35) ApplicationController ApplicationController OAuth with User Activation features should not send activation email to external users
Failure/Error: create_new_external_user(:facebook)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:240:in `block (3 levels) in <top (required)>'
36) ApplicationController ApplicationController OAuth with User Activation features should not send external users an activation success email
Failure/Error: create_new_external_user(:facebook)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:246:in `block (3 levels) in <top (required)>'
37) ApplicationController ApplicationController OAuth with User Activation features should not send activation email to external users (github)
Failure/Error: create_new_external_user(:github)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:255:in `block (3 levels) in <top (required)>'
38) ApplicationController ApplicationController OAuth with User Activation features should not send external users an activation success email (github)
Failure/Error: create_new_external_user(:github)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:261:in `block (3 levels) in <top (required)>'
39) ApplicationController ApplicationController OAuth with User Activation features should not send activation email to external users (google)
Failure/Error: create_new_external_user(:google)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:270:in `block (3 levels) in <top (required)>'
40) ApplicationController ApplicationController OAuth with User Activation features should not send external users an activation success email (google)
Failure/Error: create_new_external_user(:google)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:276:in `block (3 levels) in <top (required)>'
41) ApplicationController ApplicationController OAuth with User Activation features should not send activation email to external users (liveid)
Failure/Error: create_new_external_user(:liveid)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:285:in `block (3 levels) in <top (required)>'
42) ApplicationController ApplicationController OAuth with User Activation features should not send external users an activation success email (liveid)
Failure/Error: create_new_external_user(:liveid)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:291:in `block (3 levels) in <top (required)>'
43) ApplicationController ApplicationController OAuth with session timeout features when facebook should not reset session before session timeout
Failure/Error: create_new_external_user(provider.to_sym)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:357:in `block (5 levels) in <top (required)>'
44) ApplicationController ApplicationController OAuth with session timeout features when facebook should reset session after session timeout
Failure/Error: create_new_external_user(provider.to_sym)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:357:in `block (5 levels) in <top (required)>'
45) ApplicationController ApplicationController OAuth with session timeout features when github should not reset session before session timeout
Failure/Error: create_new_external_user(provider.to_sym)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:357:in `block (5 levels) in <top (required)>'
46) ApplicationController ApplicationController OAuth with session timeout features when github should reset session after session timeout
Failure/Error: create_new_external_user(provider.to_sym)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:357:in `block (5 levels) in <top (required)>'
47) ApplicationController ApplicationController OAuth with session timeout features when google should not reset session before session timeout
Failure/Error: create_new_external_user(provider.to_sym)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:357:in `block (5 levels) in <top (required)>'
48) ApplicationController ApplicationController OAuth with session timeout features when google should reset session after session timeout
Failure/Error: create_new_external_user(provider.to_sym)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:357:in `block (5 levels) in <top (required)>'
49) ApplicationController ApplicationController OAuth with session timeout features when liveid should not reset session before session timeout
Failure/Error: create_new_external_user(provider.to_sym)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:357:in `block (5 levels) in <top (required)>'
50) ApplicationController ApplicationController OAuth with session timeout features when liveid should reset session after session timeout
Failure/Error: create_new_external_user(provider.to_sym)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth2_spec.rb:357:in `block (5 levels) in <top (required)>'
51) ApplicationController ApplicationController 'using external API to login' logins if user exists
Failure/Error: create_new_external_user(:twitter)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth_spec.rb:72:in `block (3 levels) in <top (required)>'
52) ApplicationController ApplicationController 'using external API to login' 'login_from' fails if user doesn't exist
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_oauth_spec.rb:79:in `block (3 levels) in <top (required)>'
53) ApplicationController ApplicationController 'using external API to login' on successful 'login_from' the user should be redirected to the url he originally wanted
Failure/Error: create_new_external_user(:twitter)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth_spec.rb:86:in `block (3 levels) in <top (required)>'
54) ApplicationController ApplicationController ApplicationController 'using external API to login' when callback_url begin with / login_at redirects correctly
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_oauth_spec.rb:51:in `block (4 levels) in <top (required)>'
55) ApplicationController ApplicationController ApplicationController 'using external API to login' when callback_url begin with http:// login_at redirects correctly
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_oauth_spec.rb:63:in `block (4 levels) in <top (required)>'
56) ApplicationController ApplicationController behaves like oauth_controller using 'create_from' should create a new user
Failure/Error: get :test_create_from_provider, :provider => "twitter"
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "oauth_controller" called from ./spec/controller_oauth_spec.rb:95
# /Users/jwright/Projects/sorcery/lib/sorcery/controller/submodules/external.rb:147:in `block in create_from'
# /Users/jwright/Projects/sorcery/lib/sorcery/controller/submodules/external.rb:137:in `create_from'
# ./app/controllers/application_controller.rb:183:in `test_create_from_provider'
# /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth_shared_examples.rb:13:in `block (4 levels) in <top (required)>'
# /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth_shared_examples.rb:12:in `block (3 levels) in <top (required)>'
57) ApplicationController ApplicationController behaves like oauth_controller using 'create_from' should support nested attributes
Failure/Error: get :test_create_from_provider, :provider => "twitter"
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "oauth_controller" called from ./spec/controller_oauth_spec.rb:95
# /Users/jwright/Projects/sorcery/lib/sorcery/controller/submodules/external.rb:147:in `block in create_from'
# /Users/jwright/Projects/sorcery/lib/sorcery/controller/submodules/external.rb:137:in `create_from'
# ./app/controllers/application_controller.rb:183:in `test_create_from_provider'
# /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth_shared_examples.rb:22:in `block (4 levels) in <top (required)>'
# /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth_shared_examples.rb:21:in `block (3 levels) in <top (required)>'
58) ApplicationController ApplicationController behaves like oauth_controller using 'create_from' should not crash on missing nested attributes
Failure/Error: get :test_create_from_provider, :provider => "twitter"
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "oauth_controller" called from ./spec/controller_oauth_spec.rb:95
# /Users/jwright/Projects/sorcery/lib/sorcery/controller/submodules/external.rb:147:in `block in create_from'
# /Users/jwright/Projects/sorcery/lib/sorcery/controller/submodules/external.rb:137:in `create_from'
# ./app/controllers/application_controller.rb:183:in `test_create_from_provider'
# /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth_shared_examples.rb:31:in `block (4 levels) in <top (required)>'
# /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth_shared_examples.rb:30:in `block (3 levels) in <top (required)>'
59) ApplicationController ApplicationController behaves like oauth_controller ApplicationController ApplicationController behaves like oauth_controller using 'create_from' with a block should not create user
Failure/Error: user.save!(:validate => false)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "oauth_controller" called from ./spec/controller_oauth_spec.rb:95
# /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth_shared_examples.rb:41:in `block (4 levels) in <top (required)>'
60) ApplicationController ApplicationController using OAuth with User Activation features should not send activation email to external users
Failure/Error: create_new_external_user(:twitter)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth_spec.rb:115:in `block (3 levels) in <top (required)>'
61) ApplicationController ApplicationController using OAuth with User Activation features should not send external users an activation success email
Failure/Error: create_new_external_user(:twitter)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth_spec.rb:121:in `block (3 levels) in <top (required)>'
62) ApplicationController ApplicationController OAuth with session timeout features when twitter should not reset session before session timeout
Failure/Error: create_new_external_user(:twitter)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth_spec.rb:184:in `block (4 levels) in <top (required)>'
63) ApplicationController ApplicationController OAuth with session timeout features when twitter should reset session after session timeout
Failure/Error: create_new_external_user(:twitter)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# ./spec/controller_oauth_spec.rb:184:in `block (4 levels) in <top (required)>'
64) ApplicationController ApplicationController with remember me features should set cookie on remember_me!
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_remember_me_spec.rb:14:in `block (3 levels) in <top (required)>'
65) ApplicationController ApplicationController with remember me features should clear cookie on forget_me!
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_remember_me_spec.rb:14:in `block (3 levels) in <top (required)>'
66) ApplicationController ApplicationController with remember me features login(username,password,remember_me) should login and remember
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_remember_me_spec.rb:14:in `block (3 levels) in <top (required)>'
67) ApplicationController ApplicationController with remember me features logout should also forget_me!
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_remember_me_spec.rb:14:in `block (3 levels) in <top (required)>'
68) ApplicationController ApplicationController with remember me features should login_from_cookie
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_remember_me_spec.rb:14:in `block (3 levels) in <top (required)>'
69) ApplicationController ApplicationController with remember me features should not remember_me! when not asked to, even if third parameter is used
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_remember_me_spec.rb:14:in `block (3 levels) in <top (required)>'
70) ApplicationController ApplicationController with remember me features should not remember_me! when not asked to
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_remember_me_spec.rb:14:in `block (3 levels) in <top (required)>'
71) ApplicationController ApplicationController with remember me features
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_remember_me_spec.rb:14:in `block (3 levels) in <top (required)>'
72) ApplicationController ApplicationController with remember me features auto_login(user) should login a user instance without remembering
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_remember_me_spec.rb:14:in `block (3 levels) in <top (required)>'
73) ApplicationController ApplicationController with remember me features auto_login(user, true) should login a user instance with remembering
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_remember_me_spec.rb:14:in `block (3 levels) in <top (required)>'
74) ApplicationController ApplicationController with session timeout features should not reset session before session timeout
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_session_timeout_spec.rb:10:in `block (3 levels) in <top (required)>'
75) ApplicationController ApplicationController with session timeout features should reset session after session timeout
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_session_timeout_spec.rb:10:in `block (3 levels) in <top (required)>'
76) ApplicationController ApplicationController ApplicationController with session timeout features with 'session_timeout_from_last_action' should not logout if there was activity
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_session_timeout_spec.rb:10:in `block (3 levels) in <top (required)>'
77) ApplicationController ApplicationController ApplicationController with session timeout features with 'session_timeout_from_last_action' with 'session_timeout_from_last_action' should logout if there was no activity
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_session_timeout_spec.rb:10:in `block (3 levels) in <top (required)>'
78) ApplicationController ApplicationController when activated with sorcery
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
79) ApplicationController ApplicationController when activated with sorcery
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
80) ApplicationController ApplicationController when activated with sorcery
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
81) ApplicationController ApplicationController when activated with sorcery
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
82) ApplicationController ApplicationController when activated with sorcery login(username,password) should return the user when success and set the session with user.id
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
83) ApplicationController ApplicationController when activated with sorcery login(email,password) should return the user when success and set the session with user.id
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
84) ApplicationController ApplicationController when activated with sorcery login(username,password) should return nil and not set the session when failure
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
85) ApplicationController ApplicationController when activated with sorcery login(username,password) should return nil and not set the session when upper case username
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
86) ApplicationController ApplicationController when activated with sorcery login(username,password) should return the user and set the session with user.id when upper case username and config is downcase before authenticating
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
87) ApplicationController ApplicationController when activated with sorcery login(username,password) should return nil and not set the session when user was created with upper case username, config is default, and log in username is lower case
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
88) ApplicationController ApplicationController when activated with sorcery login(username,password) should return the user and set the session with user.id when user was created with upper case username and config is downcase before authenticating
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
89) ApplicationController ApplicationController when activated with sorcery logout should clear the session
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
90) ApplicationController ApplicationController when activated with sorcery logged_in? should return true if logged in
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
91) ApplicationController ApplicationController when activated with sorcery logged_in? should return false if not logged in
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
92) ApplicationController ApplicationController when activated with sorcery current_user should return the user instance if logged in
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
93) ApplicationController ApplicationController when activated with sorcery current_user should return false if not logged in
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
94) ApplicationController ApplicationController when activated with sorcery
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
95) ApplicationController ApplicationController when activated with sorcery should call the configured 'not_authenticated_action' when authenticate before_filter fails
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
96) ApplicationController ApplicationController when activated with sorcery require_login before_filter should save the url that the user originally wanted
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
97) ApplicationController ApplicationController when activated with sorcery require_login before_filter should not save the url that the user originally wanted upon all non-get http methods
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
98) ApplicationController ApplicationController when activated with sorcery on successful login the user should be redirected to the url he originally wanted
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
99) ApplicationController ApplicationController when activated with sorcery
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
100) ApplicationController ApplicationController when activated with sorcery auto_login(user) should login a user instance
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
101) ApplicationController ApplicationController when activated with sorcery auto_login(user) should work even if current_user was already set to false
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# ./spec/controller_spec.rb:36:in `block (3 levels) in <top (required)>'
102) User with activation submodule behaves like rails_3_activation_model User activation process should initialize user state to 'pending'
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa897122bd0>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:59:in `block (3 levels) in <top (required)>'
103) User with activation submodule behaves like rails_3_activation_model User activation process
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa8955c0b30>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:59:in `block (3 levels) in <top (required)>'
104) User with activation submodule behaves like rails_3_activation_model User activation process should clear activation code and change state to 'active' on activation
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa89553a760>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:59:in `block (3 levels) in <top (required)>'
105) User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer is enabled should send the user an activation email
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa89536e6e8>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:59:in `block (3 levels) in <top (required)>'
106) User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer is enabled subsequent saves do not send activation email
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa8952b3ed8>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:59:in `block (3 levels) in <top (required)>'
107) User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer is enabled should send the user an activation success email on successful activation
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa8951ea858>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:59:in `block (3 levels) in <top (required)>'
108) User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer is enabled subsequent saves do not send activation success email
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa895038258>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:59:in `block (3 levels) in <top (required)>'
109) User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer is enabled activation needed email is optional
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa8937eec88>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:59:in `block (3 levels) in <top (required)>'
110) User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer is enabled activation success email is optional
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa8937e0b10>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:59:in `block (3 levels) in <top (required)>'
111) User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer has been disabled should not send the user an activation email
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa8937cd560>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:59:in `block (3 levels) in <top (required)>'
112) User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer has been disabled should not send the user an activation success email on successful activation
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa8937bacf8>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:59:in `block (3 levels) in <top (required)>'
113) User with activation submodule behaves like rails_3_activation_model User prevent non-active login feature should not allow a non-active user to authenticate
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa89343cc70>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:147:in `block (3 levels) in <top (required)>'
114) User with activation submodule behaves like rails_3_activation_model User prevent non-active login feature should allow a non-active user to authenticate if configured so
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa8931e5e90>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:147:in `block (3 levels) in <top (required)>'
115) User with activation submodule behaves like rails_3_activation_model User load_from_activation_token load_from_activation_token should return user when token is found
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa89351e5a8>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:170:in `block (3 levels) in <top (required)>'
116) User with activation submodule behaves like rails_3_activation_model User load_from_activation_token load_from_activation_token should NOT return user when token is NOT found
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa897516228>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:175:in `block (3 levels) in <top (required)>'
117) User with activation submodule behaves like rails_3_activation_model User load_from_activation_token load_from_activation_token should return user when token is found and not expired
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa89751f080>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:181:in `block (3 levels) in <top (required)>'
118) User with activation submodule behaves like rails_3_activation_model User load_from_activation_token load_from_activation_token should NOT return user when token is found and expired
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa897527f00>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:187:in `block (3 levels) in <top (required)>'
119) User with activation submodule behaves like rails_3_activation_model User load_from_activation_token load_from_activation_token should always be valid if expiration period is nil
Failure/Error: create_new_user
NoMethodError:
undefined method `activation_token=' for #<User:0x007fa893555698>
Shared Example Group: "rails_3_activation_model" called from ./spec/user_activation_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/model/submodules/user_activation.rb:123:in `setup_activation'
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:199:in `block (3 levels) in <top (required)>'
120) User with brute_force_protection submodule behaves like rails_3_brute_force_protection_model User loaded plugin configuration
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_brute_force_protection_model" called from ./spec/user_brute_force_protection_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_brute_force_protection_shared_examples.rb:7:in `block (3 levels) in <top (required)>'
121) User with brute_force_protection submodule behaves like rails_3_brute_force_protection_model User loaded plugin configuration
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_brute_force_protection_model" called from ./spec/user_brute_force_protection_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_brute_force_protection_shared_examples.rb:7:in `block (3 levels) in <top (required)>'
122) User with brute_force_protection submodule behaves like rails_3_brute_force_protection_model User loaded plugin configuration should enable configuration option 'failed_logins_count_attribute_name'
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_brute_force_protection_model" called from ./spec/user_brute_force_protection_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_brute_force_protection_shared_examples.rb:7:in `block (3 levels) in <top (required)>'
123) User with brute_force_protection submodule behaves like rails_3_brute_force_protection_model User loaded plugin configuration should enable configuration option 'lock_expires_at_attribute_name'
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_brute_force_protection_model" called from ./spec/user_brute_force_protection_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_brute_force_protection_shared_examples.rb:7:in `block (3 levels) in <top (required)>'
124) User with brute_force_protection submodule behaves like rails_3_brute_force_protection_model User loaded plugin configuration should enable configuration option 'consecutive_login_retries_amount_allowed'
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_brute_force_protection_model" called from ./spec/user_brute_force_protection_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_brute_force_protection_shared_examples.rb:7:in `block (3 levels) in <top (required)>'
125) User with brute_force_protection submodule behaves like rails_3_brute_force_protection_model User loaded plugin configuration should enable configuration option 'login_lock_time_period'
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_brute_force_protection_model" called from ./spec/user_brute_force_protection_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_brute_force_protection_shared_examples.rb:7:in `block (3 levels) in <top (required)>'
126) User with oauth submodule behaves like rails_3_oauth_model User loaded plugin configuration should respond to 'load_from_provider'
Failure/Error: create_new_external_user(:twitter)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_oauth_model" called from ./spec/user_oauth_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_oauth_shared_examples.rb:14:in `block (3 levels) in <top (required)>'
127) User with oauth submodule behaves like rails_3_oauth_model User loaded plugin configuration 'load_from_provider' should load user if exists
Failure/Error: create_new_external_user(:twitter)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_oauth_model" called from ./spec/user_oauth_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_oauth_shared_examples.rb:14:in `block (3 levels) in <top (required)>'
128) User with oauth submodule behaves like rails_3_oauth_model User loaded plugin configuration 'load_from_provider' should return nil if user doesn't exist
Failure/Error: create_new_external_user(:twitter)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_oauth_model" called from ./spec/user_oauth_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_oauth_shared_examples.rb:14:in `block (3 levels) in <top (required)>'
129) User with remember_me submodule behaves like rails_3_remember_me_model User loaded plugin configuration should allow configuration option 'remember_me_token_attribute_name'
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_remember_me_model" called from ./spec/user_remember_me_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_remember_me_shared_examples.rb:6:in `block (3 levels) in <top (required)>'
130) User with remember_me submodule behaves like rails_3_remember_me_model User loaded plugin configuration should allow configuration option 'remember_me_token_expires_at_attribute_name'
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_remember_me_model" called from ./spec/user_remember_me_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_remember_me_shared_examples.rb:6:in `block (3 levels) in <top (required)>'
131) User with remember_me submodule behaves like rails_3_remember_me_model User loaded plugin configuration
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_remember_me_model" called from ./spec/user_remember_me_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_remember_me_shared_examples.rb:6:in `block (3 levels) in <top (required)>'
132) User with remember_me submodule behaves like rails_3_remember_me_model User loaded plugin configuration
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_remember_me_model" called from ./spec/user_remember_me_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_remember_me_shared_examples.rb:6:in `block (3 levels) in <top (required)>'
133) User with remember_me submodule behaves like rails_3_remember_me_model User loaded plugin configuration should generate a new token on 'remember_me!'
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_remember_me_model" called from ./spec/user_remember_me_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_remember_me_shared_examples.rb:6:in `block (3 levels) in <top (required)>'
134) User with remember_me submodule behaves like rails_3_remember_me_model User loaded plugin configuration should set an expiration based on 'remember_me_for' attribute
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_remember_me_model" called from ./spec/user_remember_me_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_remember_me_shared_examples.rb:6:in `block (3 levels) in <top (required)>'
135) User with remember_me submodule behaves like rails_3_remember_me_model User loaded plugin configuration should delete the token and expiration on 'forget_me!'
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_remember_me_model" called from ./spec/user_remember_me_spec.rb:13
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_remember_me_shared_examples.rb:6:in `block (3 levels) in <top (required)>'
136) User with reset_password submodule behaves like rails_3_reset_password_model User loaded plugin configuration API
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:15:in `block (4 levels) in <top (required)>'
137) User with reset_password submodule behaves like rails_3_reset_password_model User loaded plugin configuration API
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:15:in `block (4 levels) in <top (required)>'
138) User with reset_password submodule behaves like rails_3_reset_password_model User loaded plugin configuration API should respond to .load_from_reset_password_token
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:15:in `block (4 levels) in <top (required)>'
139) User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery load_from_reset_password_token should return user when token is found
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:87:in `block (3 levels) in <top (required)>'
140) User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery load_from_reset_password_token should NOT return user when token is NOT found
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:93:in `block (3 levels) in <top (required)>'
141) User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery load_from_reset_password_token should return user when token is found and not expired
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:99:in `block (3 levels) in <top (required)>'
142) User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery load_from_reset_password_token should NOT return user when token is found and expired
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:106:in `block (3 levels) in <top (required)>'
143) User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery load_from_reset_password_token should always be valid if expiration period is nil
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:114:in `block (3 levels) in <top (required)>'
144) User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery 'deliver_reset_password_instructions!' should generate a reset_password_token
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:126:in `block (3 levels) in <top (required)>'
145) User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery the reset_password_token should be random
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:133:in `block (3 levels) in <top (required)>'
146) User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery when change_password! is called, should delete reset_password_token
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:207:in `block (3 levels) in <top (required)>'
147) User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery should return false if time between emails has not passed since last email
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:216:in `block (3 levels) in <top (required)>'
148) User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery should encrypt properly on reset
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:223:in `block (3 levels) in <top (required)>'
149) User with reset_password submodule behaves like rails_3_reset_password_model User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery mailer is enabled should send an email on reset
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:143:in `block (4 levels) in <top (required)>'
150) User with reset_password submodule behaves like rails_3_reset_password_model User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery mailer is enabled should not send an email if time between emails has not passed since last email
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:150:in `block (4 levels) in <top (required)>'
151) User with reset_password submodule behaves like rails_3_reset_password_model User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery mailer is enabled should send an email if time between emails has passed since last email
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:160:in `block (4 levels) in <top (required)>'
152) User with reset_password submodule behaves like rails_3_reset_password_model User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery mailer is disabled should send an email on reset
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:178:in `block (4 levels) in <top (required)>'
153) User with reset_password submodule behaves like rails_3_reset_password_model User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery mailer is disabled should not send an email if time between emails has not passed since last email
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:185:in `block (4 levels) in <top (required)>'
154) User with reset_password submodule behaves like rails_3_reset_password_model User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery mailer is disabled should send an email if time between emails has passed since last email
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_reset_password_model" called from ./spec/user_reset_password_spec.rb:14
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:195:in `block (4 levels) in <top (required)>'
155) User with no submodules (core) it should behave like rails_3_core_model User when activated with sorcery authenticate should return true if credentials are good
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:77:in `block (3 levels) in <top (required)>'
156) User with no submodules (core) it should behave like rails_3_core_model User when activated with sorcery authenticate should return false if credentials are bad
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:82:in `block (3 levels) in <top (required)>'
157) User with no submodules (core) it should behave like rails_3_core_model User registration should encrypt password when a new user is saved
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:120:in `block (3 levels) in <top (required)>'
158) User with no submodules (core) it should behave like rails_3_core_model User registration should clear the virtual password field if the encryption process worked
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:125:in `block (3 levels) in <top (required)>'
159) User with no submodules (core) it should behave like rails_3_core_model User registration should not clear the virtual password field if save failed due to validity
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:130:in `block (3 levels) in <top (required)>'
160) User with no submodules (core) it should behave like rails_3_core_model User registration should not clear the virtual password field if save failed due to exception
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:141:in `block (3 levels) in <top (required)>'
161) User with no submodules (core) it should behave like rails_3_core_model User registration should not encrypt the password twice when a user is updated
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:155:in `block (3 levels) in <top (required)>'
162) User with no submodules (core) it should behave like rails_3_core_model User registration should replace the crypted_password in case a new password is set
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:162:in `block (3 levels) in <top (required)>'
163) User with no submodules (core) it should behave like rails_3_core_model User special encryption cases should work with no password encryption
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:187:in `block (3 levels) in <top (required)>'
164) User with no submodules (core) it should behave like rails_3_core_model User special encryption cases should work with custom password encryption
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:203:in `block (3 levels) in <top (required)>'
165) User with no submodules (core) it should behave like rails_3_core_model User special encryption cases salt should be random for each user and saved in db
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:245:in `block (3 levels) in <top (required)>'
166) User with no submodules (core) it should behave like rails_3_core_model User special encryption cases if salt is set should use it to encrypt
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:252:in `block (3 levels) in <top (required)>'
167) User with no submodules (core) it should behave like rails_3_core_model User special encryption cases if salt_join_token is set should use it to encrypt
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:261:in `block (3 levels) in <top (required)>'
168) User with no submodules (core) it should behave like rails_3_core_model User ORM adapter find_by_username should work as expected
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:278:in `block (3 levels) in <top (required)>'
169) User with no submodules (core) it should behave like rails_3_core_model User ORM adapter find_by_username should work as expected with multiple username attributes
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:278:in `block (3 levels) in <top (required)>'
170) User with no submodules (core) it should behave like rails_3_core_model User ORM adapter find_by_email should work as expected
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "rails_3_core_model" called from ./spec/user_spec.rb:22
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:278:in `block (3 levels) in <top (required)>'
171) User with no submodules (core) User external users it should behave like external_user should respond to 'external?'
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "external_user" called from ./spec/user_spec.rb:34
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:307:in `block (2 levels) in <top (required)>'
172) User with no submodules (core) User external users it should behave like external_user external? should be false for regular users
Failure/Error: create_new_user
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "external_user" called from ./spec/user_spec.rb:34
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:29:in `create_new_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:312:in `block (2 levels) in <top (required)>'
173) User with no submodules (core) User external users it should behave like external_user external? should be true for external users
Failure/Error: create_new_external_user(:twitter)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: table users has no column named last_activity_at: INSERT INTO "users" ("created_at", "crypted_password", "email", "last_activity_at", "last_login_at", "last_logout_at", "salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
Shared Example Group: "external_user" called from ./spec/user_spec.rb:34
# /Users/jwright/Projects/sorcery/lib/sorcery/test_helpers/internal.rb:36:in `create_new_external_user'
# /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:317:in `block (2 levels) in <top (required)>'
Finished in 6.56 seconds
241 examples, 173 failures
Failed examples:
rspec ./spec/controller_brute_force_protection_spec.rb:25 # ApplicationController ApplicationController with brute force protection features should count login retries
rspec ./spec/controller_brute_force_protection_spec.rb:30 # ApplicationController ApplicationController with brute force protection features should generate unlock token after user locked
rspec ./spec/controller_brute_force_protection_spec.rb:38 # ApplicationController ApplicationController with brute force protection features should unlock after entering unlock token
rspec ./spec/controller_brute_force_protection_spec.rb:52 # ApplicationController ApplicationController with brute force protection features should reset the counter on a good login
rspec ./spec/controller_brute_force_protection_spec.rb:59 # ApplicationController ApplicationController with brute force protection features should lock user when number of retries reached the limit
rspec ./spec/controller_brute_force_protection_spec.rb:66 # ApplicationController ApplicationController with brute force protection features should unlock after lock time period passes
rspec ./spec/controller_brute_force_protection_spec.rb:77 # ApplicationController ApplicationController with brute force protection features should not unlock if time period is 0 (permanent lock)
rspec ./spec/controller_http_basic_auth_spec.rb:16 # ApplicationController ApplicationController with http basic auth features requests basic authentication when before_filter is used
rspec ./spec/controller_http_basic_auth_spec.rb:21 # ApplicationController ApplicationController with http basic auth features authenticates from http basic if credentials are sent
rspec ./spec/controller_http_basic_auth_spec.rb:27 # ApplicationController ApplicationController with http basic auth features fails authentication if credentials are wrong
rspec ./spec/controller_http_basic_auth_spec.rb:33 # ApplicationController ApplicationController with http basic auth features should allow configuration option 'controller_to_realm_map'
rspec ./spec/controller_http_basic_auth_spec.rb:38 # ApplicationController ApplicationController with http basic auth features should display the correct realm name configured for the controller
rspec ./spec/controller_http_basic_auth_spec.rb:44 # ApplicationController ApplicationController with http basic auth features should sign in the user's session on successful login
rspec ./spec/controller_oauth2_spec.rb:91 # ApplicationController ApplicationController with OAuth features 'login_from' logins if user exists
rspec ./spec/controller_oauth2_spec.rb:98 # ApplicationController ApplicationController with OAuth features 'login_from' fails if user doesn't exist
rspec ./spec/controller_oauth2_spec.rb:105 # ApplicationController ApplicationController with OAuth features on successful login_from the user should be redirected to the url he originally wanted
rspec ./spec/controller_oauth2_spec.rb:114 # ApplicationController ApplicationController with OAuth features login_at redirects correctly (github)
rspec ./spec/controller_oauth2_spec.rb:121 # ApplicationController ApplicationController with OAuth features 'login_from' logins if user exists (github)
rspec ./spec/controller_oauth2_spec.rb:128 # ApplicationController ApplicationController with OAuth features 'login_from' fails if user doesn't exist (github)
rspec ./spec/controller_oauth2_spec.rb:135 # ApplicationController ApplicationController with OAuth features on successful login_from the user should be redirected to the url he originally wanted (github)
rspec ./spec/controller_oauth2_spec.rb:144 # ApplicationController ApplicationController with OAuth features login_at redirects correctly (google)
rspec ./spec/controller_oauth2_spec.rb:151 # ApplicationController ApplicationController with OAuth features 'login_from' logins if user exists (google)
rspec ./spec/controller_oauth2_spec.rb:158 # ApplicationController ApplicationController with OAuth features 'login_from' fails if user doesn't exist (google)
rspec ./spec/controller_oauth2_spec.rb:165 # ApplicationController ApplicationController with OAuth features on successful login_from the user should be redirected to the url he originally wanted (google)
rspec ./spec/controller_oauth2_spec.rb:174 # ApplicationController ApplicationController with OAuth features login_at redirects correctly (liveid)
rspec ./spec/controller_oauth2_spec.rb:181 # ApplicationController ApplicationController with OAuth features 'login_from' logins if user exists (liveid)
rspec ./spec/controller_oauth2_spec.rb:188 # ApplicationController ApplicationController with OAuth features 'login_from' fails if user doesn't exist (liveid)
rspec ./spec/controller_oauth2_spec.rb:195 # ApplicationController ApplicationController with OAuth features on successful login_from the user should be redirected to the url he originally wanted (liveid)
rspec ./spec/controller_oauth2_spec.rb:71 # ApplicationController ApplicationController ApplicationController with OAuth features when callback_url begin with / login_at redirects correctly
rspec ./spec/controller_oauth2_spec.rb:83 # ApplicationController ApplicationController ApplicationController with OAuth features when callback_url begin with http:// login_at redirects correctly
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth2_shared_examples.rb:9 # ApplicationController ApplicationController behaves like oauth2_controller using 'create_from' should create a new user
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth2_shared_examples.rb:18 # ApplicationController ApplicationController behaves like oauth2_controller using 'create_from' should support nested attributes
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth2_shared_examples.rb:27 # ApplicationController ApplicationController behaves like oauth2_controller using 'create_from' should not crash on missing nested attributes
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth2_shared_examples.rb:45 # ApplicationController ApplicationController behaves like oauth2_controller ApplicationController ApplicationController behaves like oauth2_controller using 'create_from' with a block should not create user
rspec ./spec/controller_oauth2_spec.rb:238 # ApplicationController ApplicationController OAuth with User Activation features should not send activation email to external users
rspec ./spec/controller_oauth2_spec.rb:244 # ApplicationController ApplicationController OAuth with User Activation features should not send external users an activation success email
rspec ./spec/controller_oauth2_spec.rb:253 # ApplicationController ApplicationController OAuth with User Activation features should not send activation email to external users (github)
rspec ./spec/controller_oauth2_spec.rb:259 # ApplicationController ApplicationController OAuth with User Activation features should not send external users an activation success email (github)
rspec ./spec/controller_oauth2_spec.rb:268 # ApplicationController ApplicationController OAuth with User Activation features should not send activation email to external users (google)
rspec ./spec/controller_oauth2_spec.rb:274 # ApplicationController ApplicationController OAuth with User Activation features should not send external users an activation success email (google)
rspec ./spec/controller_oauth2_spec.rb:283 # ApplicationController ApplicationController OAuth with User Activation features should not send activation email to external users (liveid)
rspec ./spec/controller_oauth2_spec.rb:289 # ApplicationController ApplicationController OAuth with User Activation features should not send external users an activation success email (liveid)
rspec ./spec/controller_oauth2_spec.rb:364 # ApplicationController ApplicationController OAuth with session timeout features when facebook should not reset session before session timeout
rspec ./spec/controller_oauth2_spec.rb:370 # ApplicationController ApplicationController OAuth with session timeout features when facebook should reset session after session timeout
rspec ./spec/controller_oauth2_spec.rb:364 # ApplicationController ApplicationController OAuth with session timeout features when github should not reset session before session timeout
rspec ./spec/controller_oauth2_spec.rb:370 # ApplicationController ApplicationController OAuth with session timeout features when github should reset session after session timeout
rspec ./spec/controller_oauth2_spec.rb:364 # ApplicationController ApplicationController OAuth with session timeout features when google should not reset session before session timeout
rspec ./spec/controller_oauth2_spec.rb:370 # ApplicationController ApplicationController OAuth with session timeout features when google should reset session after session timeout
rspec ./spec/controller_oauth2_spec.rb:364 # ApplicationController ApplicationController OAuth with session timeout features when liveid should not reset session before session timeout
rspec ./spec/controller_oauth2_spec.rb:370 # ApplicationController ApplicationController OAuth with session timeout features when liveid should reset session after session timeout
rspec ./spec/controller_oauth_spec.rb:70 # ApplicationController ApplicationController 'using external API to login' logins if user exists
rspec ./spec/controller_oauth_spec.rb:77 # ApplicationController ApplicationController 'using external API to login' 'login_from' fails if user doesn't exist
rspec ./spec/controller_oauth_spec.rb:84 # ApplicationController ApplicationController 'using external API to login' on successful 'login_from' the user should be redirected to the url he originally wanted
rspec ./spec/controller_oauth_spec.rb:50 # ApplicationController ApplicationController ApplicationController 'using external API to login' when callback_url begin with / login_at redirects correctly
rspec ./spec/controller_oauth_spec.rb:62 # ApplicationController ApplicationController ApplicationController 'using external API to login' when callback_url begin with http:// login_at redirects correctly
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth_shared_examples.rb:9 # ApplicationController ApplicationController behaves like oauth_controller using 'create_from' should create a new user
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth_shared_examples.rb:18 # ApplicationController ApplicationController behaves like oauth_controller using 'create_from' should support nested attributes
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth_shared_examples.rb:27 # ApplicationController ApplicationController behaves like oauth_controller using 'create_from' should not crash on missing nested attributes
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/controller_oauth_shared_examples.rb:45 # ApplicationController ApplicationController behaves like oauth_controller ApplicationController ApplicationController behaves like oauth_controller using 'create_from' with a block should not create user
rspec ./spec/controller_oauth_spec.rb:113 # ApplicationController ApplicationController using OAuth with User Activation features should not send activation email to external users
rspec ./spec/controller_oauth_spec.rb:119 # ApplicationController ApplicationController using OAuth with User Activation features should not send external users an activation success email
rspec ./spec/controller_oauth_spec.rb:191 # ApplicationController ApplicationController OAuth with session timeout features when twitter should not reset session before session timeout
rspec ./spec/controller_oauth_spec.rb:197 # ApplicationController ApplicationController OAuth with session timeout features when twitter should reset session after session timeout
rspec ./spec/controller_remember_me_spec.rb:27 # ApplicationController ApplicationController with remember me features should set cookie on remember_me!
rspec ./spec/controller_remember_me_spec.rb:34 # ApplicationController ApplicationController with remember me features should clear cookie on forget_me!
rspec ./spec/controller_remember_me_spec.rb:40 # ApplicationController ApplicationController with remember me features login(username,password,remember_me) should login and remember
rspec ./spec/controller_remember_me_spec.rb:48 # ApplicationController ApplicationController with remember me features logout should also forget_me!
rspec ./spec/controller_remember_me_spec.rb:54 # ApplicationController ApplicationController with remember me features should login_from_cookie
rspec ./spec/controller_remember_me_spec.rb:65 # ApplicationController ApplicationController with remember me features should not remember_me! when not asked to, even if third parameter is used
rspec ./spec/controller_remember_me_spec.rb:70 # ApplicationController ApplicationController with remember me features should not remember_me! when not asked to
rspec ./spec/controller_remember_me_spec.rb:76 # ApplicationController ApplicationController with remember me features
rspec ./spec/controller_remember_me_spec.rb:78 # ApplicationController ApplicationController with remember me features auto_login(user) should login a user instance without remembering
rspec ./spec/controller_remember_me_spec.rb:87 # ApplicationController ApplicationController with remember me features auto_login(user, true) should login a user instance with remembering
rspec ./spec/controller_session_timeout_spec.rb:17 # ApplicationController ApplicationController with session timeout features should not reset session before session timeout
rspec ./spec/controller_session_timeout_spec.rb:24 # ApplicationController ApplicationController with session timeout features should reset session after session timeout
rspec ./spec/controller_session_timeout_spec.rb:33 # ApplicationController ApplicationController ApplicationController with session timeout features with 'session_timeout_from_last_action' should not logout if there was activity
rspec ./spec/controller_session_timeout_spec.rb:45 # ApplicationController ApplicationController ApplicationController with session timeout features with 'session_timeout_from_last_action' with 'session_timeout_from_last_action' should logout if there was no activity
rspec ./spec/controller_spec.rb:47 # ApplicationController ApplicationController when activated with sorcery
rspec ./spec/controller_spec.rb:49 # ApplicationController ApplicationController when activated with sorcery
rspec ./spec/controller_spec.rb:51 # ApplicationController ApplicationController when activated with sorcery
rspec ./spec/controller_spec.rb:53 # ApplicationController ApplicationController when activated with sorcery
rspec ./spec/controller_spec.rb:55 # ApplicationController ApplicationController when activated with sorcery login(username,password) should return the user when success and set the session with user.id
rspec ./spec/controller_spec.rb:61 # ApplicationController ApplicationController when activated with sorcery login(email,password) should return the user when success and set the session with user.id
rspec ./spec/controller_spec.rb:67 # ApplicationController ApplicationController when activated with sorcery login(username,password) should return nil and not set the session when failure
rspec ./spec/controller_spec.rb:73 # ApplicationController ApplicationController when activated with sorcery login(username,password) should return nil and not set the session when upper case username
rspec ./spec/controller_spec.rb:79 # ApplicationController ApplicationController when activated with sorcery login(username,password) should return the user and set the session with user.id when upper case username and config is downcase before authenticating
rspec ./spec/controller_spec.rb:86 # ApplicationController ApplicationController when activated with sorcery login(username,password) should return nil and not set the session when user was created with upper case username, config is default, and log in username is lower case
rspec ./spec/controller_spec.rb:93 # ApplicationController ApplicationController when activated with sorcery login(username,password) should return the user and set the session with user.id when user was created with upper case username and config is downcase before authenticating
rspec ./spec/controller_spec.rb:101 # ApplicationController ApplicationController when activated with sorcery logout should clear the session
rspec ./spec/controller_spec.rb:108 # ApplicationController ApplicationController when activated with sorcery logged_in? should return true if logged in
rspec ./spec/controller_spec.rb:113 # ApplicationController ApplicationController when activated with sorcery logged_in? should return false if not logged in
rspec ./spec/controller_spec.rb:118 # ApplicationController ApplicationController when activated with sorcery current_user should return the user instance if logged in
rspec ./spec/controller_spec.rb:124 # ApplicationController ApplicationController when activated with sorcery current_user should return false if not logged in
rspec ./spec/controller_spec.rb:129 # ApplicationController ApplicationController when activated with sorcery
rspec ./spec/controller_spec.rb:131 # ApplicationController ApplicationController when activated with sorcery should call the configured 'not_authenticated_action' when authenticate before_filter fails
rspec ./spec/controller_spec.rb:138 # ApplicationController ApplicationController when activated with sorcery require_login before_filter should save the url that the user originally wanted
rspec ./spec/controller_spec.rb:144 # ApplicationController ApplicationController when activated with sorcery require_login before_filter should not save the url that the user originally wanted upon all non-get http methods
rspec ./spec/controller_spec.rb:151 # ApplicationController ApplicationController when activated with sorcery on successful login the user should be redirected to the url he originally wanted
rspec ./spec/controller_spec.rb:160 # ApplicationController ApplicationController when activated with sorcery
rspec ./spec/controller_spec.rb:162 # ApplicationController ApplicationController when activated with sorcery auto_login(user) should login a user instance
rspec ./spec/controller_spec.rb:168 # ApplicationController ApplicationController when activated with sorcery auto_login(user) should work even if current_user was already set to false
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:62 # User with activation submodule behaves like rails_3_activation_model User activation process should initialize user state to 'pending'
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:66 # User with activation submodule behaves like rails_3_activation_model User activation process
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:68 # User with activation submodule behaves like rails_3_activation_model User activation process should clear activation code and change state to 'active' on activation
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:79 # User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer is enabled should send the user an activation email
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:85 # User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer is enabled subsequent saves do not send activation email
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:92 # User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer is enabled should send the user an activation success email on successful activation
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:98 # User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer is enabled subsequent saves do not send activation success email
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:106 # User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer is enabled activation needed email is optional
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:113 # User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer is enabled activation success email is optional
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:126 # User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer has been disabled should not send the user an activation email
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:132 # User with activation submodule behaves like rails_3_activation_model User with activation submodule behaves like rails_3_activation_model User activation process mailer has been disabled should not send the user an activation success email on successful activation
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:150 # User with activation submodule behaves like rails_3_activation_model User prevent non-active login feature should not allow a non-active user to authenticate
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:154 # User with activation submodule behaves like rails_3_activation_model User prevent non-active login feature should allow a non-active user to authenticate if configured so
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:169 # User with activation submodule behaves like rails_3_activation_model User load_from_activation_token load_from_activation_token should return user when token is found
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:174 # User with activation submodule behaves like rails_3_activation_model User load_from_activation_token load_from_activation_token should NOT return user when token is NOT found
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:179 # User with activation submodule behaves like rails_3_activation_model User load_from_activation_token load_from_activation_token should return user when token is found and not expired
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:185 # User with activation submodule behaves like rails_3_activation_model User load_from_activation_token load_from_activation_token should NOT return user when token is found and expired
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_activation_shared_examples.rb:197 # User with activation submodule behaves like rails_3_activation_model User load_from_activation_token load_from_activation_token should always be valid if expiration period is nil
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_brute_force_protection_shared_examples.rb:14 # User with brute_force_protection submodule behaves like rails_3_brute_force_protection_model User loaded plugin configuration
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_brute_force_protection_shared_examples.rb:15 # User with brute_force_protection submodule behaves like rails_3_brute_force_protection_model User loaded plugin configuration
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_brute_force_protection_shared_examples.rb:17 # User with brute_force_protection submodule behaves like rails_3_brute_force_protection_model User loaded plugin configuration should enable configuration option 'failed_logins_count_attribute_name'
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_brute_force_protection_shared_examples.rb:22 # User with brute_force_protection submodule behaves like rails_3_brute_force_protection_model User loaded plugin configuration should enable configuration option 'lock_expires_at_attribute_name'
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_brute_force_protection_shared_examples.rb:27 # User with brute_force_protection submodule behaves like rails_3_brute_force_protection_model User loaded plugin configuration should enable configuration option 'consecutive_login_retries_amount_allowed'
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_brute_force_protection_shared_examples.rb:32 # User with brute_force_protection submodule behaves like rails_3_brute_force_protection_model User loaded plugin configuration should enable configuration option 'login_lock_time_period'
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_oauth_shared_examples.rb:17 # User with oauth submodule behaves like rails_3_oauth_model User loaded plugin configuration should respond to 'load_from_provider'
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_oauth_shared_examples.rb:21 # User with oauth submodule behaves like rails_3_oauth_model User loaded plugin configuration 'load_from_provider' should load user if exists
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_oauth_shared_examples.rb:25 # User with oauth submodule behaves like rails_3_oauth_model User loaded plugin configuration 'load_from_provider' should return nil if user doesn't exist
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_remember_me_shared_examples.rb:13 # User with remember_me submodule behaves like rails_3_remember_me_model User loaded plugin configuration should allow configuration option 'remember_me_token_attribute_name'
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_remember_me_shared_examples.rb:18 # User with remember_me submodule behaves like rails_3_remember_me_model User loaded plugin configuration should allow configuration option 'remember_me_token_expires_at_attribute_name'
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_remember_me_shared_examples.rb:23 # User with remember_me submodule behaves like rails_3_remember_me_model User loaded plugin configuration
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_remember_me_shared_examples.rb:25 # User with remember_me submodule behaves like rails_3_remember_me_model User loaded plugin configuration
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_remember_me_shared_examples.rb:27 # User with remember_me submodule behaves like rails_3_remember_me_model User loaded plugin configuration should generate a new token on 'remember_me!'
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_remember_me_shared_examples.rb:34 # User with remember_me submodule behaves like rails_3_remember_me_model User loaded plugin configuration should set an expiration based on 'remember_me_for' attribute
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_remember_me_shared_examples.rb:40 # User with remember_me submodule behaves like rails_3_remember_me_model User loaded plugin configuration should delete the token and expiration on 'forget_me!'
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:18 # User with reset_password submodule behaves like rails_3_reset_password_model User loaded plugin configuration API
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:20 # User with reset_password submodule behaves like rails_3_reset_password_model User loaded plugin configuration API
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:22 # User with reset_password submodule behaves like rails_3_reset_password_model User loaded plugin configuration API should respond to .load_from_reset_password_token
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:86 # User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery load_from_reset_password_token should return user when token is found
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:92 # User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery load_from_reset_password_token should NOT return user when token is NOT found
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:98 # User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery load_from_reset_password_token should return user when token is found and not expired
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:105 # User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery load_from_reset_password_token should NOT return user when token is found and expired
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:113 # User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery load_from_reset_password_token should always be valid if expiration period is nil
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:125 # User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery 'deliver_reset_password_instructions!' should generate a reset_password_token
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:132 # User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery the reset_password_token should be random
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:206 # User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery when change_password! is called, should delete reset_password_token
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:215 # User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery should return false if time between emails has not passed since last email
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:222 # User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery should encrypt properly on reset
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:142 # User with reset_password submodule behaves like rails_3_reset_password_model User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery mailer is enabled should send an email on reset
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:149 # User with reset_password submodule behaves like rails_3_reset_password_model User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery mailer is enabled should not send an email if time between emails has not passed since last email
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:159 # User with reset_password submodule behaves like rails_3_reset_password_model User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery mailer is enabled should send an email if time between emails has passed since last email
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:177 # User with reset_password submodule behaves like rails_3_reset_password_model User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery mailer is disabled should send an email on reset
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:184 # User with reset_password submodule behaves like rails_3_reset_password_model User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery mailer is disabled should not send an email if time between emails has not passed since last email
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_reset_password_shared_examples.rb:194 # User with reset_password submodule behaves like rails_3_reset_password_model User with reset_password submodule behaves like rails_3_reset_password_model User when activated with sorcery mailer is disabled should send an email if time between emails has passed since last email
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:76 # User with no submodules (core) it should behave like rails_3_core_model User when activated with sorcery authenticate should return true if credentials are good
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:81 # User with no submodules (core) it should behave like rails_3_core_model User when activated with sorcery authenticate should return false if credentials are bad
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:119 # User with no submodules (core) it should behave like rails_3_core_model User registration should encrypt password when a new user is saved
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:124 # User with no submodules (core) it should behave like rails_3_core_model User registration should clear the virtual password field if the encryption process worked
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:129 # User with no submodules (core) it should behave like rails_3_core_model User registration should not clear the virtual password field if save failed due to validity
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:140 # User with no submodules (core) it should behave like rails_3_core_model User registration should not clear the virtual password field if save failed due to exception
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:154 # User with no submodules (core) it should behave like rails_3_core_model User registration should not encrypt the password twice when a user is updated
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:161 # User with no submodules (core) it should behave like rails_3_core_model User registration should replace the crypted_password in case a new password is set
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:185 # User with no submodules (core) it should behave like rails_3_core_model User special encryption cases should work with no password encryption
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:191 # User with no submodules (core) it should behave like rails_3_core_model User special encryption cases should work with custom password encryption
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:243 # User with no submodules (core) it should behave like rails_3_core_model User special encryption cases salt should be random for each user and saved in db
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:249 # User with no submodules (core) it should behave like rails_3_core_model User special encryption cases if salt is set should use it to encrypt
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:257 # User with no submodules (core) it should behave like rails_3_core_model User special encryption cases if salt_join_token is set should use it to encrypt
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:286 # User with no submodules (core) it should behave like rails_3_core_model User ORM adapter find_by_username should work as expected
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:290 # User with no submodules (core) it should behave like rails_3_core_model User ORM adapter find_by_username should work as expected with multiple username attributes
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:295 # User with no submodules (core) it should behave like rails_3_core_model User ORM adapter find_by_email should work as expected
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:306 # User with no submodules (core) User external users it should behave like external_user should respond to 'external?'
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:311 # User with no submodules (core) User external users it should behave like external_user external? should be false for regular users
rspec /Users/jwright/Projects/sorcery/spec/shared_examples/user_shared_examples.rb:316 # User with no submodules (core) User external users it should behave like external_user external? should be true for external users
Using rake (0.9.2.2)
Using i18n (0.6.1)
Using multi_json (1.3.6)
Using activesupport (3.2.8)
Using builder (3.0.3)
Using activemodel (3.2.8)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.8)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.8)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.8)
Using activeresource (3.2.8)
Using archive-tar-minitar (0.5.2)
Using bcrypt-ruby (3.0.1)
Using bson (1.7.0)
Using bson_ext (1.7.0)
Using bundler (1.2.0)
Using coderay (1.0.7)
Using columnize (0.3.6)
Using diff-lcs (1.1.3)
Using multipart-post (1.1.5)
Using faraday (0.8.4)
Using httpauth (0.1)
Using json (1.7.5)
Using ruby_core_source (0.1.5)
Using linecache19 (0.5.12)
Using method_source (0.8)
Using mongo (1.7.0)
Using plucky (0.5.1)
Using mongo_mapper (0.11.2)
Using oauth (0.4.7)
Using oauth2 (0.7.1)
Using slop (3.3.3)
Using pry (0.9.10)
Using rack-ssl (1.3.2)
Using rdoc (3.12)
Using thor (0.16.0)
Using railties (3.2.8)
Using rails (3.2.8)
Using rspec-core (2.5.2)
Using rspec-expectations (2.5.0)
Using rspec-mocks (2.5.0)
Using rspec (2.5.0)
Using rspec-rails (2.5.0)
Using ruby-debug-base19 (0.11.25)
Using ruby-debug19 (0.11.6)
Using simplecov-html (0.5.3)
Using simplecov (0.6.4)
Using sorcery (0.7.13) from source at ../../
Using timecop (0.4.6)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
ApplicationController
ApplicationController plugin configuration
should enable configuration option 'user_class'
should enable configuration option 'not_authenticated_action'
ApplicationController when activated with sorcery
should respond to #login
should respond to #logout
should respond to #logged_in?
should respond to #current_user
login(username,password) should return the user when success and set the session with user.id
login(email,password) should return the user when success and set the session with user.id
login(username,password) should return nil and not set the session when failure
login(username,password) should return nil and not set the session when upper case username
login(username,password) should return the user and set the session with user.id when upper case username and config is downcase before authenticating
login(username,password) should return nil and not set the session when user was created with upper case username, config is default, and log in username is lower case
login(username,password) should return the user and set the session with user.id when user was created with upper case username and config is downcase before authenticating
logout should clear the session
logged_in? should return true if logged in
logged_in? should return false if not logged in
current_user should return the user instance if logged in
current_user should return false if not logged in
should respond to #require_login
should call the configured 'not_authenticated_action' when authenticate before_filter fails
require_login before_filter should save the url that the user originally wanted
require_login before_filter should not save the url that the user originally wanted upon all non-get http methods
on successful login the user should be redirected to the url he originally wanted
should respond to #auto_login
auto_login(user) should login a user instance
User with activation submodule
behaves like rails_3_activation_model
User loaded plugin configuration
should enable configuration option 'activation_state_attribute_name'
should enable configuration option 'activation_token_attribute_name'
should enable configuration option 'user_activation_mailer'
should enable configuration option 'activation_needed_email_method_name'
should enable configuration option 'activation_success_email_method_name'
should enable configuration option 'activation_mailer_disabled'
if mailer is nil and mailer is enabled, throw exception!
if mailer is disabled and mailer is nil, do NOT throw exception
User activation process
should initialize user state to 'pending'
should respond to #activate!
should clear activation code and change state to 'active' on activation
mailer is enabled
should send the user an activation email
subsequent saves do not send activation email
should send the user an activation success email on successful activation
subsequent saves do not send activation success email
activation needed email is optional
activation success email is optional
mailer has been disabled
should not send the user an activation email
should not send the user an activation success email on successful activation
User prevent non-active login feature
should not allow a non-active user to authenticate
should allow a non-active user to authenticate if configured so
User load_from_activation_token
load_from_activation_token should return user when token is found
load_from_activation_token should NOT return user when token is NOT found
load_from_activation_token should return user when token is found and not expired
load_from_activation_token should NOT return user when token is found and expired
load_from_activation_token should return nil if token is blank
load_from_activation_token should always be valid if expiration period is nil
User with activity logging submodule
behaves like rails_3_activity_logging_model
User loaded plugin configuration
should allow configuration option 'last_login_at_attribute_name'
should allow configuration option 'last_logout_at_attribute_name'
should allow configuration option 'last_activity_at_attribute_name'
User with brute_force_protection submodule
behaves like rails_3_brute_force_protection_model
User loaded plugin configuration
should respond to #failed_logins_count
should respond to #lock_expires_at
should enable configuration option 'failed_logins_count_attribute_name'
should enable configuration option 'lock_expires_at_attribute_name'
should enable configuration option 'consecutive_login_retries_amount_allowed'
should enable configuration option 'login_lock_time_period'
User with oauth submodule
behaves like rails_3_oauth_model
User loaded plugin configuration
should respond to 'load_from_provider'
'load_from_provider' should load user if exists
'load_from_provider' should return nil if user doesn't exist
User with remember_me submodule
behaves like rails_3_remember_me_model
User loaded plugin configuration
should allow configuration option 'remember_me_token_attribute_name'
should allow configuration option 'remember_me_token_expires_at_attribute_name'
should respond to #remember_me!
should respond to #forget_me!
should generate a new token on 'remember_me!'
should set an expiration based on 'remember_me_for' attribute
should delete the token and expiration on 'forget_me!'
User with reset_password submodule
behaves like rails_3_reset_password_model
User loaded plugin configuration
should allow configuration option 'reset_password_token_attribute_name'
should allow configuration option 'reset_password_mailer'
should enable configuration option 'reset_password_mailer_disabled'
if mailer is nil and mailer is enabled, throw exception!
if mailer is disabled and mailer is nil, do NOT throw exception
should allow configuration option 'reset_password_email_method_name'
should allow configuration option 'reset_password_expiration_period'
should allow configuration option 'reset_password_email_sent_at_attribute_name'
should allow configuration option 'reset_password_time_between_emails'
API
should respond to #deliver_reset_password_instructions!
should respond to #change_password!
should respond to .load_from_reset_password_token
User when activated with sorcery
load_from_reset_password_token should return user when token is found
load_from_reset_password_token should NOT return user when token is NOT found
load_from_reset_password_token should return user when token is found and not expired
load_from_reset_password_token should NOT return user when token is found and expired
load_from_reset_password_token should always be valid if expiration period is nil
load_from_reset_password_token should return nil if token is blank
'deliver_reset_password_instructions!' should generate a reset_password_token
the reset_password_token should be random
when change_password! is called, should delete reset_password_token
should return false if time between emails has not passed since last email
should encrypt properly on reset
mailer is enabled
should send an email on reset
should not send an email if time between emails has not passed since last email
should send an email if time between emails has passed since last email
mailer is disabled
should send an email on reset
should not send an email if time between emails has not passed since last email
should send an email if time between emails has passed since last email
User with no submodules (core)
User when app has plugin loaded
User should respond_to .authenticates_with_sorcery!
it should behave like rails_3_core_model
User loaded plugin configuration
should enable configuration option 'username_attribute_names'
should enable configuration option 'password_attribute_name'
should enable configuration option 'email_attribute_name'
should enable configuration option 'crypted_password_attribute_name'
should enable configuration option 'salt_attribute_name'
should enable configuration option 'encryption_algorithm'
should enable configuration option 'encryption_key'
should enable configuration option 'custom_encryption_provider'
should enable configuration option 'salt_join_token'
should enable configuration option 'stretches'
User when activated with sorcery
should respond to class method authenticate
authenticate should return true if credentials are good
authenticate should return false if credentials are bad
should respond to #encrypt
subclass should inherit config if defined so
subclass should not inherit config if not defined so
User registration
by default, encryption_provider should not be nil
should encrypt password when a new user is saved
should clear the virtual password field if the encryption process worked
should not clear the virtual password field if save failed due to validity
should not clear the virtual password field if save failed due to exception
should not encrypt the password twice when a user is updated
should replace the crypted_password in case a new password is set
User special encryption cases
should work with no password encryption
should work with custom password encryption
if encryption algo is aes256, it should set key to crypto provider
if encryption algo is aes256, it should set key to crypto provider, even if attributes are set in reverse
if encryption algo is md5 it should work
if encryption algo is sha1 it should work
if encryption algo is sha256 it should work
if encryption algo is sha512 it should work
salt should be random for each user and saved in db
if salt is set should use it to encrypt
if salt_join_token is set should use it to encrypt
User ORM adapter
find_by_username should work as expected
find_by_username should work as expected with multiple username attributes
find_by_email should work as expected
User external users
it should behave like external_user
should respond to 'external?'
external? should be false for regular users
external? should be true for external users
User when inherited
should inherit mongo_mapper keys
Finished in 1.88 seconds
142 examples, 0 failures
Using rake (0.9.2.2)
Using i18n (0.6.1)
Using multi_json (1.3.6)
Using activesupport (3.2.8)
Using builder (3.0.3)
Using activemodel (3.2.8)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.8)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.8)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.8)
Using activeresource (3.2.8)
Using archive-tar-minitar (0.5.2)
Using bcrypt-ruby (3.0.1)
Using bson (1.7.0)
Using bson_ext (1.7.0)
Using bundler (1.2.0)
Using columnize (0.3.6)
Using diff-lcs (1.1.3)
Using multipart-post (1.1.5)
Using faraday (0.8.4)
Using httpauth (0.1)
Using json (1.7.5)
Using ruby_core_source (0.1.5)
Using linecache19 (0.5.12)
Using mongo (1.7.0)
Using mongoid (2.5.0)
Using oauth (0.4.7)
Using oauth2 (0.7.1)
Using rack-ssl (1.3.2)
Using rdoc (3.12)
Using thor (0.16.0)
Using railties (3.2.8)
Using rails (3.2.8)
Using rspec-core (2.5.2)
Using rspec-expectations (2.5.0)
Using rspec-mocks (2.5.0)
Using rspec (2.5.0)
Using rspec-rails (2.5.0)
Using ruby-debug-base19 (0.11.25)
Using ruby-debug19 (0.11.6)
Using simplecov-html (0.5.3)
Using simplecov (0.6.4)
Using sorcery (0.7.13) from source at ../../
Using timecop (0.4.6)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
ApplicationController
ApplicationController with activity logging features
should respond to #current_users
'current_users' should be empty when no users are logged in
should log login time on login
should log logout time on logout
should log last activity time when logged in
should update nothing but activity fields
'current_users' should hold the user object when 1 user is logged in
'current_users' should show all current_users, whether they have logged out before or not.
should not register login time if configured so
should not register logout time if configured so
should not register last activity time if configured so
ApplicationController
ApplicationController plugin configuration
should enable configuration option 'user_class'
should enable configuration option 'not_authenticated_action'
ApplicationController when activated with sorcery
should respond to #login
should respond to #logout
should respond to #logged_in?
should respond to #current_user
login(username,password) should return the user when success and set the session with user.id
login(email,password) should return the user when success and set the session with user.id
login(username,password) should return nil and not set the session when failure
login(username,password) should return nil and not set the session when upper case username
login(username,password) should return the user and set the session with user.id when upper case username and config is downcase before authenticating
login(username,password) should return nil and not set the session when user was created with upper case username, config is default, and log in username is lower case
login(username,password) should return the user and set the session with user.id when user was created with upper case username and config is downcase before authenticating
logout should clear the session
logged_in? should return true if logged in
logged_in? should return false if not logged in
current_user should return the user instance if logged in
current_user should return false if not logged in
should respond to #require_login
should call the configured 'not_authenticated_action' when session[:user_id] isn't found
should call the configured 'not_authenticated_action' when authenticate before_filter fails
require_login before_filter should save the url that the user originally wanted
require_login before_filter should not save the url that the user originally wanted upon all non-get http methods
on successful login the user should be redirected to the url he originally wanted
should respond to #auto_login
auto_login(user) should login a user instance
User with activation submodule
behaves like rails_3_activation_model
User loaded plugin configuration
should enable configuration option 'activation_state_attribute_name'
should enable configuration option 'activation_token_attribute_name'
should enable configuration option 'user_activation_mailer'
should enable configuration option 'activation_needed_email_method_name'
should enable configuration option 'activation_success_email_method_name'
should enable configuration option 'activation_mailer_disabled'
if mailer is nil and mailer is enabled, throw exception!
if mailer is disabled and mailer is nil, do NOT throw exception
User activation process
should initialize user state to 'pending'
should respond to #activate!
should clear activation code and change state to 'active' on activation
mailer is enabled
should send the user an activation email
subsequent saves do not send activation email
should send the user an activation success email on successful activation
subsequent saves do not send activation success email
activation needed email is optional
activation success email is optional
mailer has been disabled
should not send the user an activation email
should not send the user an activation success email on successful activation
User prevent non-active login feature
should not allow a non-active user to authenticate
should allow a non-active user to authenticate if configured so
User load_from_activation_token
load_from_activation_token should return user when token is found
load_from_activation_token should NOT return user when token is NOT found
load_from_activation_token should return user when token is found and not expired
load_from_activation_token should NOT return user when token is found and expired
load_from_activation_token should return nil if token is blank
load_from_activation_token should always be valid if expiration period is nil
User with activity logging submodule
behaves like rails_3_activity_logging_model
User loaded plugin configuration
should allow configuration option 'last_login_at_attribute_name'
should allow configuration option 'last_logout_at_attribute_name'
should allow configuration option 'last_activity_at_attribute_name'
User with brute_force_protection submodule
behaves like rails_3_brute_force_protection_model
User loaded plugin configuration
should respond to #failed_logins_count
should respond to #lock_expires_at
should enable configuration option 'failed_logins_count_attribute_name'
should enable configuration option 'lock_expires_at_attribute_name'
should enable configuration option 'consecutive_login_retries_amount_allowed'
should enable configuration option 'login_lock_time_period'
User with oauth submodule
behaves like rails_3_oauth_model
User loaded plugin configuration
should respond to 'load_from_provider'
'load_from_provider' should load user if exists
'load_from_provider' should return nil if user doesn't exist
User with remember_me submodule
behaves like rails_3_remember_me_model
User loaded plugin configuration
should allow configuration option 'remember_me_token_attribute_name'
should allow configuration option 'remember_me_token_expires_at_attribute_name'
should respond to #remember_me!
should respond to #forget_me!
should generate a new token on 'remember_me!'
should set an expiration based on 'remember_me_for' attribute
should delete the token and expiration on 'forget_me!'
User with reset_password submodule
behaves like rails_3_reset_password_model
User loaded plugin configuration
should allow configuration option 'reset_password_token_attribute_name'
should allow configuration option 'reset_password_mailer'
should enable configuration option 'reset_password_mailer_disabled'
if mailer is nil and mailer is enabled, throw exception!
if mailer is disabled and mailer is nil, do NOT throw exception
should allow configuration option 'reset_password_email_method_name'
should allow configuration option 'reset_password_expiration_period'
should allow configuration option 'reset_password_email_sent_at_attribute_name'
should allow configuration option 'reset_password_time_between_emails'
API
should respond to #deliver_reset_password_instructions!
should respond to #change_password!
should respond to .load_from_reset_password_token
User when activated with sorcery
load_from_reset_password_token should return user when token is found
load_from_reset_password_token should NOT return user when token is NOT found
load_from_reset_password_token should return user when token is found and not expired
load_from_reset_password_token should NOT return user when token is found and expired
load_from_reset_password_token should always be valid if expiration period is nil
load_from_reset_password_token should return nil if token is blank
'deliver_reset_password_instructions!' should generate a reset_password_token
the reset_password_token should be random
when change_password! is called, should delete reset_password_token
should return false if time between emails has not passed since last email
should encrypt properly on reset
mailer is enabled
should send an email on reset
should not send an email if time between emails has not passed since last email
should send an email if time between emails has passed since last email
mailer is disabled
should send an email on reset
should not send an email if time between emails has not passed since last email
should send an email if time between emails has passed since last email
User with no submodules (core)
User when app has plugin loaded
User should respond_to .authenticates_with_sorcery!
it should behave like rails_3_core_model
User loaded plugin configuration
should enable configuration option 'username_attribute_names'
should enable configuration option 'password_attribute_name'
should enable configuration option 'email_attribute_name'
should enable configuration option 'crypted_password_attribute_name'
should enable configuration option 'salt_attribute_name'
should enable configuration option 'encryption_algorithm'
should enable configuration option 'encryption_key'
should enable configuration option 'custom_encryption_provider'
should enable configuration option 'salt_join_token'
should enable configuration option 'stretches'
User when activated with sorcery
should respond to class method authenticate
authenticate should return true if credentials are good
authenticate should return false if credentials are bad
should respond to #encrypt
subclass should inherit config if defined so
subclass should not inherit config if not defined so
User registration
by default, encryption_provider should not be nil
should encrypt password when a new user is saved
should clear the virtual password field if the encryption process worked
should not clear the virtual password field if save failed due to validity
should not clear the virtual password field if save failed due to exception
should not encrypt the password twice when a user is updated
should replace the crypted_password in case a new password is set
User special encryption cases
should work with no password encryption
should work with custom password encryption
if encryption algo is aes256, it should set key to crypto provider
if encryption algo is aes256, it should set key to crypto provider, even if attributes are set in reverse
if encryption algo is md5 it should work
if encryption algo is sha1 it should work
if encryption algo is sha256 it should work
if encryption algo is sha512 it should work
salt should be random for each user and saved in db
if salt is set should use it to encrypt
if salt_join_token is set should use it to encrypt
User ORM adapter
find_by_username should work as expected
find_by_username should work as expected with multiple username attributes
find_by_email should work as expected
User external users
it should behave like external_user
should respond to 'external?'
external? should be false for regular users
external? should be true for external users
User when inherited
should inherit mongoid fields
Finished in 2.57 seconds
154 examples, 0 failures
Using rake (0.9.2.2)
Using i18n (0.6.1)
Using multi_json (1.3.6)
Using activesupport (3.2.8)
Using builder (3.0.3)
Using activemodel (3.2.8)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.8)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.8)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.8)
Using activeresource (3.2.8)
Using archive-tar-minitar (0.5.2)
Using bcrypt-ruby (3.0.1)
Using bundler (1.2.0)
Using columnize (0.3.6)
Using diff-lcs (1.1.3)
Using multipart-post (1.1.5)
Using faraday (0.8.4)
Using httpauth (0.1)
Using json (1.7.5)
Using ruby_core_source (0.1.5)
Using linecache19 (0.5.12)
Using oauth (0.4.7)
Using oauth2 (0.7.1)
Using rack-ssl (1.3.2)
Using rdoc (3.12)
Using thor (0.16.0)
Using railties (3.2.8)
Using rails (3.2.8)
Using rspec-core (2.5.2)
Using rspec-expectations (2.5.0)
Using rspec-mocks (2.5.0)
Using rspec (2.5.0)
Using ruby-debug-base19 (0.11.25)
Using ruby-debug19 (0.11.6)
Using simplecov-html (0.5.3)
Using simplecov (0.6.4)
Using sorcery (0.7.13) from source at ../
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
Crypto Providers wrappers
Sorcery::CryptoProviders::MD5
encrypt works via wrapper like normal lib
works with multiple stretches
matches? returns true when matches
matches? returns false when no match
Sorcery::CryptoProviders::SHA1
encrypt works via wrapper like normal lib
works with multiple stretches
matches? returns true when matches
matches? returns false when no match
matches password encrypted using salt and join token from upstream
Sorcery::CryptoProviders::SHA256
encrypt works via wrapper like normal lib
works with multiple stretches
matches? returns true when matches
matches? returns false when no match
Sorcery::CryptoProviders::SHA512
encrypt works via wrapper like normal lib
works with multiple stretches
matches? returns true when matches
matches? returns false when no match
Sorcery::CryptoProviders::AES256
encrypt works via wrapper like normal lib
matches? returns true when matches
matches? returns false when no match
can be decrypted
Sorcery::CryptoProviders::BCrypt
should be comparable with original secret
works with multiple costs
matches? returns true when matches
matches? returns false when no match
respond_to?(:stretches) returns true
sets cost when stretches is set
Finished in 0.01736 seconds
27 examples, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment