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
Carlos Antonio da Silva 6aae17e856 Refactor pluck with multiple columns
Ensure it works with mix of symbols and strings, and with a select
clause possibly containing more than one column.

Also remove support for pluck with an array of columns, in favor of
passing the list of attributes:

    Model.pluck(:a, :b)

See comments: https://github.com/rails/rails/pull/6500#issuecomment-6030292
2012-06-22 09:15:43 -03:00
..
adapters Improve the derivation of HABTM assocation join table names 2012-06-22 06:27:11 +01:00
associations Improve the derivation of HABTM assocation join table names 2012-06-22 06:27:11 +01:00
attribute_methods Simplify AR configuration code. 2012-06-15 19:15:36 +01:00
coders
connection_adapters Simplify AR configuration code. 2012-06-15 19:15:36 +01:00
connection_specification The resolver tests fail if the mysql gem is not installed; this breaks 2012-06-03 17:24:17 -07:00
fixtures
migration TimeZone format is always /[+-]\d{2}:\d{2}/ in Ruby 1.9 2012-06-12 02:41:58 +09:00
relation predicate builder should not recurse for determining where columns. 2012-05-30 15:09:13 -07:00
session_store Rename test file so that the test suite matches it, implement persisted? for SqlBypass as expected by tests and convert session_id to string before using on queries to get correct quotes on postgresql (avoid casting error). 2012-05-16 00:28:03 -03:00
validations remove deprecated calls 2012-04-27 14:28:36 +01:00
adapter_test.rb
ar_schema_test.rb Call methods on the correct instance in AR::Schema.define 2012-05-16 15:19:59 -07:00
associations_test.rb find and replace deprecated keys 2012-04-27 12:37:21 +01:00
attribute_methods_test.rb Remove unused assignments from activerecord tests 2012-04-29 10:02:58 -07:00
autosave_association_test.rb CollectionProxy < Relation 2012-05-11 20:11:04 +01:00
base_test.rb Merge pull request #6743 from steveklabnik/remove_composed_of 2012-06-18 16:01:32 -03:00
batches_test.rb remove deprecated #find_in_batches calls 2012-04-26 18:04:41 +01:00
binary_test.rb
bind_parameter_test.rb fix todo: use minitest skip instead of return nil 2012-05-13 02:27:52 -05:00
calculations_test.rb Refactor pluck with multiple columns 2012-06-22 09:15:43 -03:00
callbacks_test.rb + ActiveRecord::Base#destroy! 2012-06-06 13:27:51 -04:00
clone_test.rb
column_alias_test.rb
column_definition_test.rb Add uuid type support to PostgreSQL adapter 2012-06-14 17:44:51 +04:00
column_test.rb Prevent creating valid time-like objects from blank string from db 2012-05-05 23:35:25 +03:00
connection_management_test.rb
connection_pool_test.rb Remove warnings and unused code 2012-06-11 22:07:37 -03:00
counter_cache_test.rb
custom_locking_test.rb remove deprecated calls 2012-04-27 14:28:36 +01:00
database_statements_test.rb
database_tasks_test.rb Refactor testcase codes. It's repeated. 2012-06-21 03:26:32 +09:00
date_time_test.rb
defaults_test.rb
deprecated_dynamic_methods_test.rb Removing composed_of from ActiveRecord. 2012-06-18 14:53:03 -04:00
dirty_test.rb Remove unneded tests. 2012-06-14 19:31:21 -03:00
dup_test.rb
explain_subscriber_test.rb explain listener does not care about time, so use evented listener 2012-06-20 14:20:55 -07:00
explain_test.rb Fix build. It seems that the Mocha's behavior were changed. 2012-04-25 01:31:26 +09:00
finder_respond_to_test.rb stop to_sing method names 2012-06-06 19:33:38 +09:00
finder_test.rb Removing composed_of from ActiveRecord. 2012-06-18 14:53:03 -04:00
fixtures_test.rb remove calls to find(:first), find(:last) and find(:all) 2012-04-26 18:32:55 +01:00
habtm_destroy_order_test.rb
helper.rb Fix logs name consistency. 2012-05-19 04:53:12 +09:00
i18n_test.rb
inclusion_test.rb
inheritance_test.rb remove deprecated calls 2012-04-27 14:28:36 +01:00
invalid_date_test.rb Remove unused assignments from activerecord tests 2012-04-29 10:02:58 -07:00
invertible_migration_test.rb
json_serialization_test.rb Fix serializable_hash with xml generation and default :except option 2012-06-22 08:28:26 -03:00
lifecycle_test.rb Build fix for observed_classes 2012-04-30 11:03:25 +05:30
locking_test.rb removed deprecation warnings 2012-04-28 10:55:11 +07:00
log_subscriber_test.rb
mass_assignment_security_test.rb Fix deprecation warnings when using config.active_record.mass_assignment_sanitizer= 2012-06-15 19:15:37 +01:00
migration_test.rb Use . instead of :: for class methods, add CHANGELOG entries 2012-06-10 11:38:37 +02:00
migrator_test.rb
mixin_test.rb
modules_test.rb remove deprecated calls 2012-04-27 14:28:36 +01:00
multiple_db_test.rb
mysql_rake_test.rb Refactor db:structure:load task. 2012-06-21 01:35:26 +09:00
named_scope_test.rb Fix #6635. We should call Scoping methods, before calling Array methods. 2012-06-10 23:55:42 +09:00
nested_attributes_test.rb Validates_numericality_of is skipped when changing 0 to to non-empty string 2012-06-19 01:54:34 -03:00
persistence_test.rb Remove update_attribute. 2012-06-14 18:54:24 +02:00
pooled_connections_test.rb ConnectionPool wait_timeout no longer used for different types of timeouts. #6441 2012-05-23 12:08:11 -04:00
postgresql_rake_test.rb Refactor db:structure:load task. 2012-06-21 01:35:26 +09:00
primary_keys_test.rb
query_cache_test.rb Remove warnings and unused code 2012-06-11 22:07:37 -03:00
quoting_test.rb
readonly_test.rb Don't destroy readonly models 2012-05-17 17:52:17 +02:00
reaper_test.rb ConnectionPool wait_timeout no longer used for different types of timeouts. #6441 2012-05-23 12:08:11 -04:00
reflection_test.rb Removing composed_of from ActiveRecord. 2012-06-18 14:53:03 -04:00
relation_scoping_test.rb quarantine deprecated tests 2012-05-18 14:46:54 +01:00
relation_test.rb Relation#from to accept other Relation objects 2012-05-17 02:36:13 +03:00
relations_test.rb disallow mutating a relation once loaded 2012-06-22 10:29:49 +01:00
reload_models_test.rb
sanitize_test.rb
schema_dumper_test.rb Merge pull request #4396 from kennyj/fix_4259 2012-06-20 14:08:23 -03:00
serialization_test.rb
sqlite_rake_test.rb Refactor db:structure:load task. 2012-06-21 01:35:26 +09:00
store_test.rb Remember the stored attributes in a config attribute. 2012-06-18 23:49:48 -03:00
test_case.rb
timestamp_test.rb Remove update_attribute. 2012-06-14 18:54:24 +02:00
transaction_callbacks_test.rb Merge pull request #5535 from markmcspadden/issue_5527_rollbacks 2012-05-16 16:06:49 -07:00
transactions_test.rb Restore the frozen state on rollback. Fixes #6417. 2012-05-21 14:57:04 -07:00
unconnected_test.rb
validations_repair_helper.rb
validations_test.rb remove tests for #with_scope (it's now deprecated) 2012-04-25 17:52:28 +01:00
xml_serialization_test.rb Fix serializable_hash with xml generation and default :except option 2012-06-22 08:28:26 -03:00
yaml_serialization_test.rb