aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/session_store/session_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Extract ActiveRecord::SessionStore from RailsPrem Sichanugrist2012-08-241-81/+0
| | | | | This functionality will be available from gem `active_record-session_store` instead.
* test a subclass so that the removed method does not imact other testsAaron Patterson2012-01-051-2/+5
|
* Unfluff the CI.Jon Leighton2011-12-141-1/+1
| | | | | | | | | | | | | | | With transactional fixtures enabled, the session records would end up in @_current_transaction_records, and at the end of the transaction, methods would be called on them that would trigger method_missing and trigger attribute methods to be generated. However, at this point the sessions table would not exist, and the columns were not cached, so an exception would be raised because we can't find the columns to generate attribute methods for. Not sure exactly why this didn't crop up before but there have been changes to the schema cache code and perhaps that means that column data that was cached previously at that point is now uncached.
* Use `table_exists?` from the schema cache.Aaron Patterson2011-12-091-0/+1
|
* Reset column info when messing with columns.Jon Leighton2011-09-131-0/+2
| | | | | | | We are subclassing Session here, but messing with the columns will affect the attribute methods defined on the Session superclass, and therefore other tests, unless we properly isolate it by resetting column info before and after the test run.
* please use ruby -I lib:test path/to/test.rb, or export RUBY_OPTAaron Patterson2011-06-061-1/+1
|
* Refactor Active Record test connection setup. Please see the ↵Jon Leighton2011-06-041-1/+1
| | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
* Puts ActiveRecord::SessionStore attributes in white list, fixes #483slainer682011-05-101-0/+6
|
* share column cache among subclasses, only look up columns per AR::Base ↵Aaron Patterson2011-02-011-0/+1
| | | | subclass once
* In a number of places in the tests, we only need to turn off transactional ↵Jon Leighton2011-01-111-1/+1
| | | | fixtures when the DB does not support savepoints. This speeds the test run up by about 8-9% on my computer, when running rake test_sqlite3_mem :)
* do not execute the session tests within transactionsAaron Patterson2010-07-251-0/+2
|
* refactoring class methods to a moduleAaron Patterson2010-07-221-2/+5
|
* session_id is a VARCHARSantiago Pastorino2010-07-221-5/+5
|
* initializing instance variablesAaron Patterson2010-07-211-0/+63