- 02 2月, 2017 7 次提交
-
-
由 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
-
由 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 17 次提交
-
-
由 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
-
由 Ryuta Kamizono 提交于
Fixes #27666.
-
由 Rafael França 提交于
Use temporary connection pool for sqlite3_mem adapter
-
由 Rafael Mendonça França 提交于
-
由 Rafael França 提交于
Feature/active job test helper
-
由 Rafael França 提交于
Fix inherit from deprecated `ActionView::Template::Handlers::Erubis`
-
由 Arthur Nogueira Neves 提交于
Get neglected TODO done in render_test
-
由 Arthur Nogueira Neves 提交于
Freeze default empty string for sql_type in get_oid_type
-
由 Yasuo Honda 提交于
-
由 Yasuo Honda 提交于
Fixes #27826 Refer https://github.com/rails/rails/commit/f7b317175430a2d9300d9c4acfc1f34f4fdb2fbc
-
- 31 1月, 2017 16 次提交
-
-
由 Fumiaki MATSUSHIMA 提交于
There are some classes inherit from `ActionView::Template::Handlers::Erubis`. (ex. https://github.com/haml/haml/blob/4.0.7/lib/haml/helpers/safe_erubis_template.rb#L3) ``` Class.new(ActionView::Template::Handlers::Erubis) # => TypeError: superclass must be a Class (ActiveSupport::Deprecation::DeprecatedConstantProxy given) ```
-
由 Eileen M. Uchitelle 提交于
Fix typo about sort in finder_methods.rb
-
由 Eileen M. Uchitelle 提交于
Add test for `variable_size_secure_compare`
-
由 kenta-s 提交于
-
由 प्रथमेश Sonpatki 提交于
Remove redundant right parentheses in number_helper [ci skip]
-
由 kenta-s 提交于
-
由 Alexander Pauly 提交于
Refactored ActiveJob TestAdapter Updated ActiveJob changelog Fixed typo in changelog Fixed formatting issue in changelog
-
由 Kevin Huang 提交于
-
由 Rafael França 提交于
Reload `through_record` that has been destroyed in `create_through_record`
-
由 Rafael Mendonça França 提交于
-
由 Rafael França 提交于
Raise an error if FileUpdateChecker#execute is called with no block
-
由 Eugene Kenny 提交于
The raw_source method is documented as returning the exact value that was used to create the body; mutating it breaks that contract. Additionally, if the value used to create the body is blank, raw_source returns a frozen string which causes the interceptor to raise an error.
-
由 Rafael França 提交于
Specify complete path to AR::LegacyYamlAdapter
-
由 Rafael França 提交于
add default value to `deliver_later_queue_name` option [ci skip]
-
由 Rafael França 提交于
Remove unused argument `formats`
-
由 Rafael França 提交于
Added warning for reserved YAML keywords.
-