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
Yasuo Honda 2cc5ccedb1 No difference between JRuby and CRuby at test_read_attributes_before_type_cast_on_a_boolean
https://github.com/jruby/activerecord-jdbc-adapter ActiveRecord JDBC Adapter is actively developed
and it supports Rails 5.1 now. This pull request addresses one of the failure when running
ActiveRecord unit tests with ActiveRecord JDBC Adapter.

As of right now, ActiveRecord JDBC Adapter supports Rails 5.1, not master branch
then this test only can run on `5-1-stable` branch. But I have opened this pull request to `master` branch
since this type cast should be going to work in the future versions of ActiveRecord JDBC Adapter .

```ruby
$ ARCONN=jdbcmysql bin/test test/cases/attribute_methods_test.rb:203
Using jdbcmysql
Run options: --seed 8874

F

Finished in 0.709120s, 1.4102 runs/s, 1.4102 assertions/s.

  1) Failure:
AttributeMethodsTest#test_read_attributes_before_type_cast_on_a_boolean [/home/yahonda/git/rails/activerecord/test/cases/attribute_methods_test.rb:203]:
Expected: "0"
  Actual: 0

1 runs, 1 assertions, 1 failures, 0 errors, 0 skips
$
```
2017-11-21 18:18:00 +00:00
..
adapters Merge pull request #30980 from sobrinho/sobrinho/arel-star-ignored-columns 2017-11-13 15:27:59 -05:00
associations Merge pull request #27947 from mastahyeti/unsafe_raw_sql 2017-11-14 23:30:45 +10:30
attribute_methods Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
coders Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
connection_adapters Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
connection_specification Distinguish missing adapter gems from load errors within the adapter 2017-10-08 14:47:51 -07:00
fixture_set Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
migration Remove deprecated argument default from index_name_exists? 2017-10-23 12:50:45 -04:00
relation try using regexes 2017-11-09 22:42:15 +10:30
scoping Merge pull request #30980 from sobrinho/sobrinho/arel-star-ignored-columns 2017-11-13 15:27:59 -05:00
tasks Merge pull request #30414 from bogdanvlviv/clear-mysql_database_tasks 2017-11-09 17:21:37 -05:00
type Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
validations Check :scope input in Uniqueness validator 2017-08-13 19:39:55 +03:00
adapter_test.rb Fix can't modify frozen String error in an AR test 2017-08-19 21:11:59 +09:00
aggregations_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
ar_schema_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
associations_test.rb Fix random CI failure due to non-deterministic sorting order 2017-08-26 17:21:22 +09:00
attribute_decorators_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
attribute_methods_test.rb No difference between JRuby and CRuby at test_read_attributes_before_type_cast_on_a_boolean 2017-11-21 18:18:00 +00:00
attributes_test.rb Merge pull request #26707 from jcoleman/add_attribute_names_cache_busting_spec 2017-09-18 14:04:47 +09:00
autosave_association_test.rb "models/reader" is no longer used in autosave_association_test.rb 2017-08-28 09:17:21 +09:00
base_test.rb Allow test_ignored_columns_not_included_in_SELECT column names case 2017-11-15 17:40:58 +00:00
batches_test.rb allow table name and direction in string order arg 2017-11-09 22:41:33 +10:30
binary_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
bind_parameter_test.rb Refactor Active Record to let Arel manage bind params 2017-07-24 09:07:24 -04:00
cache_key_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
calculations_test.rb try using regexes 2017-11-09 22:42:15 +10:30
callbacks_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
clone_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
collection_cache_key_test.rb Ensure apply_join_dependency for collection_cache_key if eager-loading is needed 2017-11-06 03:34:15 +09:00
column_alias_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
column_definition_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
comment_test.rb Return nil if table comment is blank 2017-09-22 23:04:54 +09:00
connection_management_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
connection_pool_test.rb Merge pull request #28742 from quixoten/stack_conn_pool 2017-11-17 23:48:16 +10:30
core_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
counter_cache_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
custom_locking_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
database_statements_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
date_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
date_time_precision_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
date_time_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
defaults_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
dirty_test.rb Fix random CI failure DirtyTest: 2017-08-09 22:06:49 +03:00
disconnected_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
dup_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
enum_test.rb Load both :authors and :author_addresses to keep data integrity 2017-08-22 19:32:45 +00:00
errors_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
explain_subscriber_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
explain_test.rb Merge pull request #29732 from kirs/frozen-activerecord 2017-07-21 14:36:30 -04:00
finder_respond_to_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
finder_test.rb try using regexes 2017-11-09 22:42:15 +10:30
fixtures_test.rb Add binary helper method to fixtures. 2017-08-12 18:35:32 +09:00
forbidden_attributes_protection_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
habtm_destroy_order_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
helper.rb Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
hot_compatibility_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
i18n_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
inheritance_test.rb Clarify base_class tests on abstract STI vs concrete STI 2017-08-12 11:04:01 -07:00
instrumentation_test.rb Fix "warning: `*' interpreted as argument prefix" 2017-09-21 13:33:43 +09:00
integration_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
invalid_connection_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
invertible_migration_test.rb Fix CI failure due to invalid up_only for MySQL 2017-11-15 08:16:27 +09:00
json_attribute_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
json_serialization_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
json_shared_test_cases.rb Add JSON attribute test cases for SQLite3 adapter 2017-10-05 17:38:07 +09:00
locking_test.rb Should pass test_no_locks_no_wait not only on PostgreSQLAdapter and OracleAdapter 2017-11-09 16:57:11 +09:00
log_subscriber_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
migration_test.rb Remove deprecated method ActiveRecord::Migrator.schema_migrations_table_name 2017-10-23 12:50:46 -04:00
migrator_test.rb Fix bin/rails db:migrate with specified VERSION 2017-11-06 22:40:10 +00:00
mixin_test.rb Merge pull request #29860 from georgeclaghorn/travel-back-automatically 2017-07-24 01:01:25 -04:00
modules_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
multiparameter_attributes_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
multiple_db_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
nested_attributes_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
nested_attributes_with_callbacks_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
null_relation_test.rb Reset column information after schema changed 2017-07-20 22:43:13 +03:00
numeric_data_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
persistence_test.rb Ensure apply_join_dependency for update_all and delete_all if eager-loading is needed 2017-11-06 04:04:54 +09:00
pooled_connections_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
primary_keys_test.rb Remove deprecated method supports_primary_key? 2017-10-23 12:50:46 -04:00
query_cache_test.rb Merge pull request #28869 from eugeneius/query_cache_all_pools 2017-11-17 23:32:57 +10:30
quoting_test.rb Remove deprecated support to quoted_id when typecasting an Active Record object 2017-10-23 12:50:45 -04:00
readonly_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
reaper_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
reflection_test.rb Remove deprecated methd #scope_chain 2017-10-23 12:50:47 -04:00
relation_test.rb Properly cast input in update_all 2017-11-13 13:31:46 -07:00
relations_test.rb Merge pull request #27947 from mastahyeti/unsafe_raw_sql 2017-11-14 23:30:45 +10:30
reload_models_test.rb Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
reserved_word_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
result_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
sanitize_test.rb Remove deprecated support to quoted_id when typecasting an Active Record object 2017-10-23 12:50:45 -04:00
schema_dumper_test.rb Third party adapters doesn't support index orders yet 2017-10-26 03:19:37 +09:00
schema_loading_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
secure_token_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
serialization_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
serialized_attribute_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
statement_cache_test.rb Passing klass to StatementCache.new 2017-08-04 02:27:50 +09:00
store_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
suppressor_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
test_case.rb Address incorrect number of queries executed at Oracle enhanced adapter 2017-10-31 19:53:40 +00:00
test_fixtures_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
time_precision_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
timestamp_test.rb Move test_index_is_created_for_both_timestamps to TimestampsWithoutTransactionTest 2017-08-17 14:12:36 +00:00
touch_later_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
transaction_callbacks_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
transaction_isolation_test.rb Consolidate redundant if and unless with the same condition 2017-11-09 05:08:26 +09:00
transactions_test.rb Run ConcurrentTransactionTest if supports_transaction_isolation? 2017-11-08 23:42:52 +00:00
type_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
types_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
unconnected_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
unsafe_raw_sql_test.rb Merge pull request #27947 from mastahyeti/unsafe_raw_sql 2017-11-14 23:30:45 +10:30
validations_repair_helper.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
validations_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
view_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
yaml_serialization_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00