public
Description: A pending method for Test::Unit kind of like RSpec's except perhaps a little more strict or perhaps not or perhaps it's just a little edgy about living in RSpec's shadow or maybe it's just grumpy or maybe...
Homepage:
Clone URL: git://github.com/jeremymcanally/pending.git
Click here to lend your support to: pending and make a donation at www.pledgie.com !
jduff (author)
Thu Feb 05 08:57:48 -0800 2009
jeremymcanally (committer)
Tue Feb 10 23:32:20 -0800 2009
commit  a4933e88399f8c449892b0737334803763f6f735
tree    cd4e65b8da4e321d6fa76a9255b1d595a98f8ce3
parent  39e3328003ee7b450005b1ec88cc8fc5639574b0
pending / README.txt
100644 75 lines (50 sloc) 2.263 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
pending
    by Jeremy McAnally
    http://jeremymcanally.com
 
== DESCRIPTION:
 
pending lets you define a block of test code that is currently "pending" functionality,
similar to RSpec's pending method.
 
== FEATURES/PROBLEMS:
 
* A pending method to let you define pending test code
 
== SYNOPSIS:
 
The pending method lets you define a block of test code that is currently "pending"
functionality.
 
You can use it two ways. One is simply put a string as the parameter:
 
  def test_web_service_integration
    pending "This is not done yet..."
  end
 
This will output a "P" in the test output alerting there is pending functionality.
 
You can also supply a block of code:
 
  def test_new_helpers
    pending "New helpers for database display" do
      output = render_record(User.first)
      assert_equal "Jerry User (jerry@users.com)", output
    end
  end
 
If the block doesn't fail, then the test will flunk with output like:
 
  <New helpers for database display> did not fail.
 
If the test fails (i.e., the functionality isn't implemented), then it will
not fail the surrounding test.
 
== REQUIREMENTS:
 
* Test::Unit
 
== INSTALL:
 
  sudo gem install pending
 
== LICENSE:
 
(The MIT License)
 
Copyright (c) 2008 FIXME (different license?)
 
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
 
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
 
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.