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
Sam Goldstein d60d7edce4 Make it so AR attributes which conflict with object-private methods (e.g. system) don't 'randomly' cause NoMethodErrors
Previously if you called this attribute before others, you'd get exceptions.  But if it was the second-or-subsequent attribute you retrieved you'd get the correct behaviour.

Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#2808 state:committed]
2009-07-09 16:44:30 +12:00
..
associations Revert "Revert "Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]"" 2009-07-01 00:02:00 +01:00
validations Merge branch 'master' into active_model 2009-05-29 16:06:21 -05:00
active_schema_test_mysql.rb Make sure recreate MySQL test database with the proper encoding and collation [#1165 state:resolved] 2008-10-03 22:08:55 +02:00
active_schema_test_postgresql.rb PostgreSQL: update create_database_with_encoding test also 2008-06-07 13:43:52 -07:00
adapter_test.rb Translate foreign key violations to ActiveRecord::InvalidForeignKey exceptions. 2009-06-26 16:52:55 +12:00
aggregations_test.rb Cherry-pick core extensions 2009-05-13 12:00:15 -07:00
ar_schema_test.rb Autoload ActiveRecord files 2008-11-24 11:14:24 -06:00
associations_test.rb Remove the functionality introduce in 28d3390 2008-10-10 17:04:46 +02:00
attribute_methods_test.rb Make it so AR attributes which conflict with object-private methods (e.g. system) don't 'randomly' cause NoMethodErrors 2009-07-09 16:44:30 +12:00
autosave_association_test.rb Merge branch 'master' into active_model 2009-05-29 16:06:21 -05:00
base_test.rb Added AR:B#dup method for duplicationg object without frozen attributes [#2859 state:resolved] 2009-07-01 12:16:35 -07:00
batches_test.rb Ensure ActiveRecord::Base.find_in_batches fires doesnt fire an extra query unless needed 2009-03-11 15:24:30 +00:00
binary_test.rb Remove SQL Server cases from tests for latest adapter work to pass rails expected behavior. 2008-11-19 18:00:56 +01:00
calculations_test.rb Revert "Revert "Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]"" 2009-07-01 00:02:00 +01:00
callbacks_observers_test.rb Callbacks fire before notifying observers [#230 state:resolved] 2008-06-03 13:38:00 -05:00
callbacks_test.rb Ruby 1.9 compat: rename deprecated assert_raises to assert_raise. 2009-03-08 13:11:58 -07:00
class_inheritable_attributes_test.rb Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/rails 2008-01-21 17:20:51 +00:00
column_alias_test.rb Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/rails 2008-01-21 17:20:51 +00:00
column_definition_test.rb Don't set "NULL" as a constraint on nullable columns [#398 state:resolved] 2008-08-23 19:51:09 +03:00
connection_pool_test.rb Add test case for ActiveRecord::ConnectionAdapters::ConnectionManagement. 2009-02-25 12:48:53 -06:00
connection_test_firebird.rb Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/rails 2008-01-21 17:20:51 +00:00
connection_test_mysql.rb Mysql#reconnect is set according to the 'reconnect' key in the connection spec. 2009-01-27 09:55:25 +13:00
copy_table_test_sqlite.rb Change table to prevent copying indexes on sqlite2 2009-04-21 13:28:49 +01:00
database_statements_test.rb PostgreSQL: insert looks up pk and sequence name if not given. [#384 state:resolved] 2008-06-10 15:50:01 -07:00
datatype_test_postgresql.rb Fixed tests of postgresql money insertion when non-C locale 2009-02-06 13:39:07 +13:00
date_time_test.rb Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/rails 2008-01-21 17:20:51 +00:00
default_test_firebird.rb Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/rails 2008-01-21 17:20:51 +00:00
defaults_test.rb Merge commit 'origin/master' into savepoints 2008-12-03 19:30:35 +01:00
deprecated_finder_test.rb Fix file permissions 2008-07-31 16:36:23 -05:00
dirty_test.rb Ruby 1.9 compat: rename deprecated assert_raises to assert_raise. 2009-03-08 13:11:58 -07:00
finder_respond_to_test.rb Ensure that respond_to? considers dynamic finder methods. Closes #11538. [floehopper] 2008-04-06 22:26:15 +00:00
finder_test.rb Revert "Revert "Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]"" 2009-07-01 00:02:00 +01:00
fixtures_test.rb Reimplement Fixtures.identify so that it consistently generates identities across ruby versions. 2009-05-18 13:40:45 -07:00
helper.rb Move mocha down below initial T::U require and bump version to 0.9.7 [#2858 state:resolved] 2009-07-01 11:53:17 -07:00
i18n_test.rb use :en as a default locale (in favor of :en-US) 2008-11-18 14:23:53 +01:00
inheritance_test.rb Revert "Revert "Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]"" 2009-07-01 00:02:00 +01:00
invalid_date_test.rb Fix calculations on associations with custom :foreign_key. Closes #8117 [kamal, jack] 2008-02-02 04:28:42 +00:00
json_serialization_test.rb Fix AR json encoding 2009-06-08 19:37:51 -07:00
lifecycle_test.rb Added missing fixtures for tests which fail to run independently if run after schema reset 2008-08-04 11:50:15 +02:00
locking_test.rb Ensure Model#destroy respects optimistic locking [#1966 state:resolved] 2009-03-09 14:56:09 +00:00
method_scoping_test.rb Make sure default_scope#create checks for options[:conditions] [#2181 state:resolved] [James Le Cuirot] 2009-05-18 21:27:42 +02:00
migration_test.rb Fixed a bug where create_table could not be called without a block [#2221 state:resolved] 2009-06-21 19:51:32 +01:00
migration_test_firebird.rb Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/rails 2008-01-21 17:20:51 +00:00
mixin_test.rb Force timestamp update 2008-03-31 03:57:25 +00:00
modules_test.rb Improve ActiveRecord::Base#table_name unit tests for nested classes. Closes #10289. [scott_willson] 2008-04-07 19:44:37 +00:00
multiple_db_test.rb Move the transaction counter to the connection object rather than maintaining it on the current Thread. 2008-07-15 21:25:12 +02:00
named_scope_test.rb Add missing models and fixtures [#2673 state:resolved] 2009-05-19 12:11:46 +02:00
nested_attributes_test.rb Cherry-pick core extensions 2009-05-13 12:00:15 -07:00
pk_test.rb Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/rails 2008-01-21 17:20:51 +00:00
pooled_connections_test.rb Tests should use ActiveRecord::Base.connection.rollback_db_transaction to rollback a transaction 2009-05-01 16:00:09 +01:00
query_cache_test.rb Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha. 2009-02-03 18:40:22 -08:00
readonly_test.rb Fix file permissions 2008-07-31 16:36:23 -05:00
reflection_test.rb Revert "Revert "Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]"" 2009-07-01 00:02:00 +01:00
reload_models_test.rb Add missing fixture to allow reload models test to run isolated [#1609 state:resolved] 2008-12-20 20:39:25 +00:00
repair_helper.rb Break up DependencyModule's dual function of providing a "depend_on" DSL and "included" block DSL into separate modules. But, unify both approaches under AS::Concern. 2009-05-28 11:35:36 -05:00
reserved_word_test_mysql.rb Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/rails 2008-01-21 17:20:51 +00:00
sanitize_test.rb Change all calls to String#chars to String#mb_chars. 2008-09-21 18:01:15 +02:00
schema_authorization_test_postgresql.rb Rescue spurious failures in case dummy postgresql user or schema already exists 2008-09-04 17:20:07 +02:00
schema_dumper_test.rb Add support for dumping non-standard primary keys when using the SQLite3 adapter. Fix unit tests so that this feature is tested for all adapters. [#2868 state:resolved] 2009-07-07 16:17:25 -07:00
schema_test_postgresql.rb Quote table names when casting to regclass so that capitalized tables are supported. [#2418 state:resolved] 2009-04-21 11:43:38 +01:00
serialization_test.rb Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/rails 2008-01-21 17:20:51 +00:00
synonym_test_oracle.rb Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/rails 2008-01-21 17:20:51 +00:00
timestamp_test.rb Added :touch option to belongs_to associations that will touch the parent record when the current record is saved or destroyed [DHH] 2009-04-16 17:25:55 -05:00
transactions_test.rb SQLite adapters now support DDL transactions [#2080 state:resolved] 2009-03-14 12:58:42 +00:00
unconnected_test.rb Fix file permissions 2008-07-31 16:36:23 -05:00
validations_test.rb Deprecate Model#validate/validate_on_create/validate_on_update. Use Model.validate :method and likewise 2009-03-21 19:07:15 +00:00
xml_serialization_test.rb Ensure ActiveRecord#to_xml respects :skip_types for included associations [#1632 state:resolved] 2009-03-10 11:17:16 +00:00