- 25 5月, 2014 1 次提交
-
-
由 Guo Xiang Tan 提交于
Minitest has already been required when calling Minitest.autorun.
-
- 20 11月, 2013 1 次提交
-
-
由 Prem Sichanugrist 提交于
Add `ActiveSupport::Testing::TimeHelpers#travel` and `#travel_to`. These methods change current time to the given time or time difference by stubbing `Time.now` and `Date.today` to return the time or date after the difference calculation, or the time or date that got passed into the method respectively. These methods also accept a block, which will return current time back to its original state at the end of the block. Example for `#travel`: Time.now # => 2013-11-09 15:34:49 -05:00 travel 1.day Time.now # => 2013-11-10 15:34:49 -05:00 Date.today # => Sun, 10 Nov 2013 Example for `#travel_to`: Time.now # => 2013-11-09 15:34:49 -05:00 travel_to Time.new(2004, 11, 24, 01, 04, 44) Time.now # => 2004-11-24 01:04:44 -05:00 Date.today # => Wed, 24 Nov 2004 Both of these methods also accept a block, which will return the current time back to its original state at the end of the block: Time.now # => 2013-11-09 15:34:49 -05:00 travel 1.day do User.create.created_at # => Sun, 10 Nov 2013 15:34:49 EST -05:00 end travel_to Time.new(2004, 11, 24, 01, 04, 44) do User.create.created_at # => Wed, 24 Nov 2004 01:04:44 EST -05:00 end Time.now # => 2013-11-09 15:34:49 -05:00 This module is included in `ActiveSupport::TestCase` automatically.
-
- 17 11月, 2013 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 10 11月, 2013 1 次提交
-
-
由 Guillermo Iguaran 提交于
-
- 28 10月, 2013 1 次提交
-
-
由 Yves Senn 提交于
-
- 01 6月, 2013 1 次提交
-
-
由 kennyj 提交于
-
- 23 5月, 2013 1 次提交
-
-
由 Rafael Mendonça França 提交于
minitest/autorun required minitest/spec and we are avoiding to require it.
-
- 18 5月, 2013 1 次提交
-
- 07 5月, 2013 1 次提交
-
-
由 Ryan Davis 提交于
+ Namespace changes, overhaul of runners. + Internal ivar name changes - Removed a logger globally applied to tests that spew everywhere?!? + Override Minitest#__run to sort tests by name. + Reworked testing isolation to work with the new cleaner architecture. - Removed a bunch of tests that just test minitest straight up. I think these changes were all merged to minitest 4 a long time ago. - Minor report output differences.
-
- 24 2月, 2013 2 次提交
-
-
由 Xavier Noria 提交于
Reason: on a second thought, minitest prints a seed as run option regardless of the test order, and it actually calls srand, so albeit it might be misleading I believe, it is the way it is and should be left that way. This reverts commit c15862ae.
-
由 Xavier Noria 提交于
See the first FIXME comment in the patch for the rationale.
-
- 01 1月, 2013 3 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
This reverts commit 22bc12ec. REASON: We will remove the MiniTest::Spec from Rails and we need these methods again Conflicts: activesupport/lib/active_support/test_case.rb
-
- 05 12月, 2012 1 次提交
-
-
由 claudiob 提交于
Sometimes, on Mac OS X, programmers accidentally press Option+Space rather than just Space and don’t see the difference. The problem is that Option+Space writes a non-breaking space (0XA0) rather than a normal space (0x20). This commit removes all the non-breaking spaces inadvertently introduced in the comments of the code.
-
- 19 11月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
This reverts commit 1620df78, reversing changes made to 2d000328. Conflicts: activesupport/CHANGELOG.md activesupport/lib/active_support/test_case.rb
-
- 12 11月, 2012 1 次提交
-
-
由 James Mead 提交于
This only works with mocha v0.13.0 or later. Note that this also fixes a few subtle bugs present in the current implementation :- * Mocha was raising a `MiniTest::Assertion` instead of a `Mocha::ExpectationError` as intended. The latter is not recognized by MiniTest as an assertion failure and so it is recorded as a test *error*, not a test *failure* as it ought to. This leads to potentially confusing output in the test results. * Mocha verification should happen as part of the test. The verification of expectations is equivalent to a set of assertions. These assertions should happen as *part of* the test so that they have a chance to cause the test to fail, and not just as part of the teardown. Also if an assertion fails during the test, then there is no need to verify expectations, because only the first assertion failure is normally reported and all subsequent bets are off. * Expectation verification should be counted as an assertion. Mocha cannot record each expectation verification as an assertion, because we weren't passing in an assertion counter to `#mocha_verify`.
-
- 30 10月, 2012 1 次提交
-
-
由 Alexey Gaziev 提交于
-
- 29 10月, 2012 1 次提交
-
-
由 Nikita Afanasenko 提交于
It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly.
-
- 26 10月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Fixing the build.
-
- 27 9月, 2012 2 次提交
-
-
由 Andy Lindeman 提交于
-
由 Jeremy Kemper 提交于
-
- 25 9月, 2012 1 次提交
-
-
由 Mike Moore 提交于
AS::TC::ConstantLookup walks the test's name to find the constant it is describing. This additional lookup logic is needed to better support minitest's spec DSL.
-
- 10 7月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
minitest/spec provides `describe`, so deprecate the rails version and have people use the superclass version
-
- 09 7月, 2012 3 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
Remove rails implementation of describe, alias "test" to "it"
-
由 Aaron Patterson 提交于
-
- 05 7月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 04 7月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 20 6月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 06 6月, 2012 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 22 1月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
- 07 1月, 2012 6 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 31 12月, 2011 1 次提交
-
-
由 Vishnu Atrai 提交于
-
- 01 4月, 2011 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-