1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/migration
Yves Senn 8f8dfa488a fix rake test_sqlite3_mem.
While running Sqlite3 memory tests I encountered the following error:

```
Finished in 69.416366s, 58.0267 runs/s, 162.3681 assertions/s.

  1) Error:
ActiveRecord::Migration::ChangeSchemaTest#test_add_column_with_timestamp_type:
NoMethodError: undefined method `type' for nil:NilClass
    /Users/senny/Projects/rails/activerecord/test/cases/migration/change_schema_test.rb:244:in `test_add_column_with_timestamp_type'

4028 runs, 11271 assertions, 0 failures, 1 errors, 1 skips
```

This was because the table `testings` was used in multiple test-cases.
This resulted in a wrongly cached schema on `ActiveRecord::Base.schema_chae`.

/cc @zuhao
2014-05-20 11:21:16 +02:00
..
change_schema_test.rb fix rake test_sqlite3_mem. 2014-05-20 11:21:16 +02:00
change_table_test.rb
column_attributes_test.rb Remove dead test code for unsupported adapters 2014-05-17 13:24:25 -06:00
column_positioning_test.rb
columns_test.rb Make :index in migrations work with all column types 2014-05-18 11:26:41 +02:00
command_recorder_test.rb
create_join_table_test.rb
helper.rb
index_test.rb Remove dead test code for unsupported adapters 2014-05-17 13:24:25 -06:00
logger_test.rb
references_index_test.rb
references_statements_test.rb
rename_table_test.rb Remove dead test code for unsupported adapters 2014-05-17 13:24:25 -06:00
table_and_index_test.rb