Skip to content

Instantly share code, notes, and snippets.

View yahonda's full-sized avatar

Yasuo Honda yahonda

View GitHub Profile
MTB_VERBOSE=2 bundle exec minitest_bisect --seed 3080 -w -Itest "test/cases/adapter_test.rb" "test/cases/aggregations_test.rb" "test/cases/ar_schema_test.rb" "test/cases/associations/belongs_to_associations_test.rb" "test/cases/associations/bidirectional_destroy_dependencies_test.rb" "test/cases/associations/callbacks_test.rb" "test/cases/associations/cascaded_eager_loading_test.rb" "test/cases/associations/eager_load_includes_full_sti_class_test.rb" "test/cases/associations/eager_load_nested_include_test.rb" "test/cases/associations/eager_singularization_test.rb" "test/cases/associations/eager_test.rb" "test/cases/associations/extension_test.rb" "test/cases/associations/has_and_belongs_to_many_associations_test.rb" "test/cases/associations/has_many_associations_test.rb" "test/cases/associations/has_many_through_associations_test.rb" "test/cases/associations/has_one_associations_test.rb" "test/cases/associations/has_one_through_associations_test.rb" "test/cases/associations/inner_join_association_test.rb" "te
@yahonda
yahonda / gist:69c31528a0f270258e429592640ce1b5
Last active February 14, 2018 23:28
How disabling partial write workarounds to call `empty_insert_statement_value`
  • Enable partial writes (default)
$ ARCONN=oracle bin/test test/cases/attribute_methods_test.rb:120
Using oracle
Run options: --seed 2180

# Running:

E
https://github.com/rails/rails/blob/09b2348f7fc8d4e7191e70e06608c5909067e2aa/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb#L607-L619
https://github.com/rails/rails/commit/21d040f97d5
query_value
query_values
Recommended for dictionary queries not to cache
.............................. ................................................................................................................./home/vagrant/rails/activesupport/lib/active_support/core_ext/string/filters.rb:109: warning: character class has duplicated range: /\X/
................................................................................................................................................................................................................................................................../home/vagrant/rails/activesupport/lib/active_support/multibyte/unicode.rb:30: warning: character class has duplicated range: /\X/
206 runs, 462 assertions, 0 failures, 0 errors, 0 skips
** Invoke test (first_time)
** Execute test
/usr/bin/ruby2.5 -w -I"lib:test" -I"/var/lib/gems/2.5.0/gems/rake-12.3.0/lib" "/var/lib/gems/2.5.0/gems/rake-12.3.0/lib/rake/rake_test_loader.rb" "/home/vagrant/rails/actioncable/test/channel/stream_test.rb" "/home/vagrant/rails/actioncable/test/channel/naming_test.rb" "/home/vagrant/rails/actioncable/test/channel/base_test.rb" "/home/vagrant/rails/actioncable/test/channel/broadcasting_test.rb" "/home/vagrant/rails/actioncable/test/channel/periodic_timers_test.rb" "/home/vagrant/rails/actioncable/test/channel/rejection_test.rb" "/home/vagrant/rails/actioncable/test/worker_test.rb" "/home/vagrant/rails/actioncable/test/client_test.rb" "/home/vagrant/rails/actioncable/test/connection/stream_test.rb" "/home/vagrant/rails/actioncable/test/connection/base_test.rb" "/home/vagrant/rails/actioncable/test/connection/authorization_test.rb" "/home/vagrant/rails/actioncable/test/connection/subscriptions_test.rb" "/home/vag
@yahonda
yahonda / gist:8ed018ef744b2e136484fa9e7f96cb9b
Created April 18, 2018 12:17
Request to make `self.partial_writes` configurable per database adapter
* Summary
Make `self.partial_writes` configurable per database adapter, not per model
or always write primary key attribute name per database adapter in the next major version of Rails 6.
* Background for this idea
Identity data type support for Oracle database 12.2 or higher.
It is a kind of standard auto_increment support for Oracle database.
$ bundle exec ruby -w -Itest test/command/spellchecker_test.rb
Run options: --seed 6453
# Running:
E
Error:
Rails::Command::SpellcheckerTest#test_suggests_a_word_correction_from_dictionary:
NameError: uninitialized constant DidYouMean::SpellChecker
$ bundle exec ruby -w -Itest test/commands/server_test.rb
Run options: --seed 18561
# Running:
...E
Error:
Rails::Command::ServerCommandTest#test_using_server_mistype:
RuntimeError: rails command failed (1): bin/rails server --using tin 2>&1