Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- database authenticates existing account objects - uses passwords to authenticate
- + asserts bad password raises Database::Account::PasswordMismatchError
- ! asserts good password validates: SQLite3::ConstraintException: account_fields.account_id may not be NULL
- Sequel::DatabaseError occurred
- SQLite3::ConstraintException: account_fields.account_id may not be NULL
- at test/database/core_test.rb:230:in `block (4 levels) in <main>'
- at /home/sycobuny/Dropbox/Sources/play/ruby/kythera/lib/kythera/database/account.rb:350:in `authenticate'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1148:in `update'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1564:in `update_restricted'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1494:in `set_restricted'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1494:in `each'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1497:in `block in set_restricted'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:574:in `failed_logins='
- at /home/sycobuny/Dropbox/Sources/play/ruby/kythera/lib/kythera/database/account.rb:473:in `[]='
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1148:in `update'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1565:in `update_restricted'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1070:in `save_changes'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1057:in `save'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1445:in `checked_save_failure'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1057:in `block in save'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1457:in `checked_transaction'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/database/query.rb:208:in `transaction'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/database/connecting.rb:226:in `synchronize'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/connection_pool/threaded.rb:84:in `hold'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/database/query.rb:210:in `block in transaction'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/database/query.rb:231:in `_transaction'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1457:in `block in checked_transaction'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1057:in `block (2 levels) in save'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1310:in `_save'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:715:in `around_save'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1315:in `block in _save'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:715:in `around_create'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1318:in `block (2 levels) in _save'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1264:in `_insert'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1282:in `_insert_raw'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/dataset/actions.rb:283:in `insert'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/dataset/actions.rb:560:in `execute_insert'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/adapters/sqlite.rb:103:in `execute_insert'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/adapters/sqlite.rb:117:in `_execute'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/database/connecting.rb:226:in `synchronize'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/connection_pool/threaded.rb:71:in `hold'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/adapters/sqlite.rb:127:in `block in _execute'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/database/logging.rb:28:in `log_yield'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/adapters/sqlite.rb:127:in `block (2 levels) in _execute'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sqlite3-1.3.4/lib/sqlite3/database.rb:134:in `execute'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sqlite3-1.3.4/lib/sqlite3/database.rb:97:in `prepare'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sqlite3-1.3.4/lib/sqlite3/database.rb:97:in `ensure in prepare'
- at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sqlite3-1.3.4/lib/sqlite3/database.rb:97:in `close'
- - asserts cannot re-authenticate - bad pass: expected to raise Database::Account::AlreadyAuthenticatedError, not Sequel::DatabaseError (on line 233 in test/database/core_test.rb)
- - asserts cannot re-authenticate - good pass: expected to raise Database::Account::AlreadyAuthenticatedError, not Sequel::DatabaseError (on line 237 in test/database/core_test.rb)
- 24 passes, 2 failures, 1 errors in 2.016106 seconds
Add Comment
Please, Sign In to add comment