File: SPECS

package info (click to toggle)
ruby-test-spec 0.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 280 kB
  • sloc: ruby: 1,851; makefile: 9
file content (135 lines) | stat: -rw-r--r-- 2,868 bytes parent folder | download | duplicates (3)
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135

== TestUnit
* still works on its own
* supports should good enough
* works inside test/spec

== CustomTestUnitSubclass
* truth

== test/spec
* has should.satisfy
* has should.equal
* has should.raise
* has should.raise with a block
* should.raise should return the exception
* has should.be.an.instance_of
* has should.be.nil
* has should.include
* has should.be.a.kind_of
* has should.match
* has should.be
* has should.not.raise
* has should.not.satisfy
* has should.not.be
* has should.not.equal
* has should.not.match
* has should.throw
* has should.not.throw
* has should.respond_to
* has should.be_close
* multiple negation works
* has should.<predicate>
* has should.<predicate>?
* has should <operator> (>, >=, <, <=, ===)
* is robust against careless users
* should detect warnings
* should message/blame faults
* should allow for custom shoulds
* disabled specification (disabled)
* empty specification (disabled)
=== more disabled
* this is intentional (disabled)
* an empty specification (empty)
==== even more disabled
* we can cut out (disabled)
* entire contexts, now (disabled)

== setup/teardown
* run in the right order

== before all
* runs parent before all

== nested teardown
=== nested
* should call local teardown then parent teardown

== before all
=== nested
* should call parent then local

== after all
=== after nested
* should call local then parent

== contexts
* are defined in class scope
* can include modules

== contexts with subclasses
* use the supplied class as the superclass
* truth

== xcontexts with subclasses
* work great! (disabled)
* truth

== Shared contexts
* can be included several times
* can include other shared contexts
* can be included several times
* can include other shared contexts
* can be nested
* can access data
* should raise when the context cannot be found

== SpecDox
* can unmangle Test::Unit names correctly
* can unmangle Test::Spec names correctly
* has sensible fallbacks

== flexmock
* can not be found.  BAIL OUT! (empty)

== mocha
* can not be found.  BAIL OUT! (empty)

== Outer context
=== Inner context
* is nested (empty)
* has multiple empty specifications (empty)
=== Second Inner context
* is indented properly (empty)
* still runs in order of definition (empty)
==== Inmost context
* works too! (empty)
* whoo! (empty)

== A new-style description
* should run before-clauses
* should behave like context/specify
* this is disabled (disabled)
* should raise on unimplement{ed,able} before/after
* should work as well with shared descriptions
=== when nested
* should work

== An disabled description
* should not be run (disabled)

== should.output
* works for print
* works for puts
* works with readline

== Context First
* runs before Second

== Context Second
* runs before Last

== Context Last
* runs last

80 specifications, 8 disabled, 9 empty (602 requirements), 0 failures