- 27 9月, 2016 10 次提交
-
-
由 Kasper Timm Hansen 提交于
use `active_support/testing/autorun` in `bin/test` script
-
由 Rafael França 提交于
Make :as option also set request format (AC::TestCase)
-
由 Rafael França 提交于
Do not leak the Errors default proc when calling to_hash or as_json
-
由 Jean Boussier 提交于
-
由 yuuji.yaginuma 提交于
29f0fbd5 has changed that always call `Minitest.autorun` in `active_support/testing/autorun`. Therefore, when used directly `Minitest.run`, tests are performed twice.
-
由 प्रथमेश Sonpatki 提交于
fix typo in `DateAndTime::Calculations#all_week` doc [ci skip]
-
由 yuuji.yaginuma 提交于
`Date.week_start` does not exist. `Date.beginning_of_week` seems to be correct. Ref: #5339
-
由 Jon Moss 提交于
Fix doc format for `RecordFetchWarning` [ci skip]
-
由 Ryuta Kamizono 提交于
-
由 Kasper Timm Hansen 提交于
Initial Rails Commands Infrastructure
-
- 26 9月, 2016 22 次提交
-
-
由 Kasper Timm Hansen 提交于
-
由 Sean Griffin 提交于
This is not as good a solution as actually hashing both values, but Ruby doesn't expose that capability other than allocating the array. Unless we were to do something silly like have a thread local array that is re-used, I don't see any other way to do this without allocation. This solution may not be perfect, but it should reasonably avoid collisions to the extent that we need.
-
由 Matthew Draper 提交于
[ci skip] Update PG adapter documentation
-
由 Alex Kitchens 提交于
Per discussion in pull request #26622: "Let's change it to PG::Error. The more specific classes mentioned are subclasses, and the fact the raised exception is a PG::UndefinedColumn doesn't change the fact that it's also a PG::Error." - matthewd
-
由 Jon Moss 提交于
[ci skip] Clarify Postgresql Documentation
-
由 Alex Kitchens 提交于
This clarifies the object that +ActiveRecord::Base.connection.execute+ will return when using Postgresql.
-
由 Kasper Timm Hansen 提交于
-
由 Kasper Timm Hansen 提交于
-
由 Kasper Timm Hansen 提交于
-
由 Kasper Timm Hansen 提交于
-
由 Kasper Timm Hansen 提交于
Wash out your old! These adhoc scripts are replaced by the new commands.
-
由 Kasper Timm Hansen 提交于
Prescribed some review fixes for myself!
-
由 Kasper Timm Hansen 提交于
Still vulnerable to different file structures. We likely want something more robust when we tackle in app commands.
-
由 Kasper Timm Hansen 提交于
-
由 Kasper Timm Hansen 提交于
-
由 Kasper Timm Hansen 提交于
remove unnecessary `RAILS_ENV` setting
-
由 Jon Moss 提交于
[ci skip]
-
由 Kasper Timm Hansen 提交于
Makes sure we get support for `Minitest.after_run` hooks and don't accidentally run tests twice. Requires overriding minitest `run` to respect the TESTOPTS variable.
-
由 Kasper Timm Hansen 提交于
-
由 Kasper Timm Hansen 提交于
The Rails test runner supports three ways to run tests: directly, via rake, or ruby. When Running with Ruby ala `ruby -Itest test/models/post_test.rb` our test file would be evaluated first, requiring `test_helper` and then `active_support/testing/autorun` that would then require the test file (which it hadn't been before) thus reevaluating it. This caused exceptions if using Active Support's declarative syntax. Fix this by shifting around when we set the how we're run to closer mimick the require order. If we're running with `bin/rails test` the test command file is run first and we then set `run_with_rails_extension`, later we hit `active_support/testing/autorun` and do nothing — because we've been run elsewhere. If we at this point haven't set `run_with_rails_extension` we've been running with `ruby` this whole time and thus we set that. We should always trigger `Minitest.autorun` as it doesn't hurt to call it twice. Consolidate the two methods into a single one that better brings out the intent of why they're there.
-
由 Kasper Timm Hansen 提交于
Revise the require in the test command to use `active_support/testing/autorun` and spare us the minitest spec syntax as detailed in 5da4d514. Also move the require to the top of the file for consistency with the rest of Rails' requires across the project.
-
- 25 9月, 2016 4 次提交
-
-
由 प्रथमेश Sonpatki 提交于
Fix code formatting in `#save` RDoc [ci skip]
-
由 Adam Crownoble 提交于
Noticed that the `validate: false` option for `ActiveRecord::Persistence#save` and `#save!` were not formatted as code like the other examples in the documentation.
-
由 Jon Moss 提交于
AS => Active Support [ci skip]
-
由 Santosh Wadghule 提交于
-
- 24 9月, 2016 4 次提交
-
-
由 Andrew White 提交于
Fix ActiveSupport::TimeWithZone#in
-
由 Thomas Balthazar 提交于
Previously calls to `in` were being sent to the non-DST aware method `Time#since` via `method_missing`. It is now aliased to the DST aware `ActiveSupport::TimeWithZone#+` which handles transitions across DST boundaries, e.g: Time.zone = "US/Eastern" t = Time.zone.local(2016,11,6,1) # => Sun, 06 Nov 2016 01:00:00 EDT -05:00 t.in(1.hour) # => Sun, 06 Nov 2016 01:00:00 EST -05:00
-
由 Arthur Nogueira Neves 提交于
support minitest after_run
-
由 Michael Grosser 提交于
-