This project is archived and is in readonly mode.
Add pending_test to AS Test::Unit helpers
Reported by Damian Janowski | March 3rd, 2009 @ 05:24 PM | in 3.0.2
This is a minimal implementation for pending tests.
The given block is never evaluated and a helpful notice is written to stdout.
pending_test "false is true" do
assert false
end
Output:
Started
..
PENDING: false is true (in test/some_test.rb:2)
.......
Finished in 0.034713 seconds.
Comments and changes to this ticket
-
Pratik March 9th, 2009 @ 01:00 PM
- Assigned user changed from DHH to Yehuda Katz (wycats)
- Tag set to active_support, patch, testunit
I think Yehuda was working on something similar.
-
Pratik June 21st, 2009 @ 10:15 PM
- State changed from new to wontfix
We already have pending now.
-
Yehuda Katz (wycats) June 22nd, 2009 @ 04:20 PM
- Milestone cleared.
The pending I added in AS has the following semantics:
If you use pending without a block, it will print a "P" in the output and include it in the list of pending tests at the end of the run. If you use pending with a block, it will run the contents of the block, and fail if the tests pass (also adds it to the list of pending tests and prints a "P" if the contents fail).
To get this behavior, just inherit from AS::TestCase
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>