- 07 2月, 2017 2 次提交
-
-
由 Stan Lo 提交于
ActionMailer::Base#instrument_name and ActionController::Base#instrument_name will be frequently called once caching is enabled. So it's better to freeze them instead of create new string on every call. Also, the instrument name in #instrument_fragment_cache will usually be "write_fragment.action_controller" or "read_fragment.action_controller". So freezing them might also gain some performance improvement. We have done something like this in other places: https://github.com/rails/rails/blob/master/actionview/lib/action_view/template.rb#L348
-
由 Arthur Nogueira Neves 提交于
Correct spelling
-
- 06 2月, 2017 7 次提交
-
-
由 Rafael França 提交于
Add test for DateTime#blank?
-
由 kenta-s 提交于
-
由 Kasper Timm Hansen 提交于
Indicate action that failed in YamlColumn
-
由 Benjamin Fleischer 提交于
``` go get -u github.com/client9/misspell/cmd/misspell misspell -w -error -source=text . ```
-
由 Kir Shatrov 提交于
-
由 Kasper Timm Hansen 提交于
Add `:args` to `process.action_mailer` event.
-
由 Kasper Timm Hansen 提交于
Collect all file patterns when running multiple rake test tasks
-
- 04 2月, 2017 6 次提交
-
-
由 Eileen M. Uchitelle 提交于
Docs: Correction: Module::DelegationError
-
由 Dominic Cleal 提交于
Replaces the rake_patterns instance variable with simple require, as `autorun` will run tests from all eagerly required test files. Fixes #27801
-
由 yuuji.yaginuma 提交于
-
由 Jared Beck 提交于
When the delegation target is nil and the allow_nil option is not in use, a Module::DelegationError is raised. class C delegate :a, to: :b def b nil end end C.new.a # => Module::DelegationError: C#a delegated to b.a, but b is nil [ci skip]
-
由 Eileen M. Uchitelle 提交于
Fix typo in guide: _articles should be _article
-
由 Matthew Eagar 提交于
The guide contains a typo in the "local_assigns" section, where rendering a model named 'Article' via `render @articles` is shown to render a partial called `_articles.html.erb`, when in fact the necessary partial name is `_article.html.erb`
-
- 03 2月, 2017 6 次提交
-
-
由 Eileen M. Uchitelle 提交于
Fix collection_singular_ids= bug
-
由 Eileen M. Uchitelle 提交于
Fix a test of AR::Type::TypeMap#lookup when using Oracle
-
由 Eileen M. Uchitelle 提交于
Ignore yarn error log file
-
由 Daniel Colson 提交于
When the association's primary key is manually set as a symbol and called with an array of strings, CollectionAssociation#ids_writer fails to cast the ids to integers. This is because AssociationReflection#association_primary_key_type and ThroughReflection#association_primary_key_type return the incorrect type, since ModelSchema.type_for_attribute only accepts a string. The result is an ActiveRecord::RecordNotFound error.
-
由 yuuji.yaginuma 提交于
-
由 Kasper Timm Hansen 提交于
generate mailer layout files only when it does not exist
-
- 02 2月, 2017 11 次提交
-
-
由 Akira Matsuda 提交于
Fix CI failure caused by aa647b46
-
由 Ryuta Kamizono 提交于
-
由 Akira Matsuda 提交于
sub_template_message distracts Rails.root from its message only when Rails.root is defined, and Rails.root is defined at tools/test.rb
-
由 Akira Matsuda 提交于
since the test names become Regexp filters, non-escaped test names cause RegexpError on isolated test via bin/test
-
由 Akira Matsuda 提交于
This causes TypeError when loaded separately
-
由 Koichi ITO 提交于
-
由 yuuji.yaginuma 提交于
If already have layout files, in many cases use it.
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
According to the commit comment on 54d84cbb, AJ/bin/test was intentionally not added, but AJ tests doesn't actually do anything special other than specifying ENV['AJ_ADAPTER'], which can be easily done via command line environment variable.
-
由 Ryuta Kamizono 提交于
MySQL generated columns: https://dev.mysql.com/doc/refman/5.7/en/create-table-generated-columns.html MariaDB virtual columns: https://mariadb.com/kb/en/mariadb/virtual-computed-columns/ Declare virtual columns with `t.virtual name, type: …, as: "expression"`. Pass `stored: true` to persist the generated value (false by default). Example: create_table :generated_columns do |t| t.string :name t.virtual :upper_name, type: :string, as: "UPPER(name)" t.virtual :name_length, type: :integer, as: "LENGTH(name)", stored: true t.index :name_length # May be indexed, too! end Closes #22589
-
由 Arthur Nogueira Neves 提交于
Currently, executing the `test_initialize_raises_an_ArgumentError_if_no_block_given` test alone will result in an error. ``` $ ./bin/test test/evented_file_update_checker_test.rb -n test_initialize_raises_an_ArgumentError_if_no_block_given Run options: -n test_initialize_raises_an_ArgumentError_if_no_block_given --seed 6692 # Running: E Error: EventedFileUpdateCheckerTest#test_initialize_raises_an_ArgumentError_if_no_block_given: NameError: uninitialized constant EventedFileUpdateCheckerTest::Listen rails/activesupport/test/evented_file_update_checker_test.rb:21:in `teardown' ``` This is because if do not specify a file or directory for `EventedFileUpdateChecker`, do not require `listen`, and using listen method in teardown. https://github.com/rails/rails/blob/master/activesupport/lib/active_support/evented_file_update_checker.rb#L53..L65 Therefore, added listen's require to avoid errors.
-
- 01 2月, 2017 8 次提交
-
-
由 Matthew Draper 提交于
call `gem` `erubis` before require
-
由 yuuji.yaginuma 提交于
For inform that need to add `erubis` to gemfile.
-
由 yuuji.yaginuma 提交于
Currently, executing the `test_initialize_raises_an_ArgumentError_if_no_block_given` test alone will result in an error. ``` $ ./bin/test test/evented_file_update_checker_test.rb -n test_initialize_raises_an_ArgumentError_if_no_block_given Run options: -n test_initialize_raises_an_ArgumentError_if_no_block_given --seed 6692 # Running: E Error: EventedFileUpdateCheckerTest#test_initialize_raises_an_ArgumentError_if_no_block_given: NameError: uninitialized constant EventedFileUpdateCheckerTest::Listen rails/activesupport/test/evented_file_update_checker_test.rb:21:in `teardown' ``` This is because if do not specify a file or directory for `EventedFileUpdateChecker`, do not require `listen`, and using listen method in teardown. https://github.com/rails/rails/blob/master/activesupport/lib/active_support/evented_file_update_checker.rb#L53..L65 Therefore, added listen's require to avoid errors.
-
由 Rafael França 提交于
remove unused variable
-
由 yuuji.yaginuma 提交于
This removes the following warnings. ``` activesupport/test/file_update_checker_shared_tests.rb:279: warning: assigned but unused variable - checker ```
-
由 Rafael França 提交于
Fix missing partial iteration
-
由 Rafael França 提交于
Chain scope constraints should respect own table alias
-
由 Yuji Yaginuma 提交于
The `ActiveJob::TestHelper` replace the adapter to test adapter in `before_setup`. It gets the target class using the `descendants`, but if the test target job class is not loaded, will not be a replacement of the adapter. Therefore, instead of replacing with `before_setup`, modified to replace when setting adapter. Fixes #26360
-