relevance-test-spec 0.4.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -0
- data/Manifest +29 -0
- data/README.rdoc +394 -0
- data/ROADMAP +1 -0
- data/Rakefile +62 -0
- data/TODO +3 -0
- data/bin/specrb +107 -0
- data/examples/stack.rb +38 -0
- data/examples/stack_spec.rb +119 -0
- data/lib/test/spec.rb +731 -0
- data/lib/test/spec/dox.rb +148 -0
- data/lib/test/spec/focused/collector-extensions.rb +22 -0
- data/lib/test/spec/focused/focused.rb +30 -0
- data/lib/test/spec/rails_helper.rb +26 -0
- data/lib/test/spec/rdox.rb +25 -0
- data/lib/test/spec/should-output.rb +49 -0
- data/lib/test/spec/version.rb +8 -0
- data/test-spec.gemspec +130 -0
- data/test/helper.rb +5 -0
- data/test/spec_dox.rb +39 -0
- data/test/spec_flexmock.rb +214 -0
- data/test/spec_focused.rb +75 -0
- data/test/spec_mocha.rb +118 -0
- data/test/spec_nestedcontexts.rb +26 -0
- data/test/spec_new_style.rb +82 -0
- data/test/spec_should-output.rb +26 -0
- data/test/spec_testspec.rb +575 -0
- data/test/spec_testspec_order.rb +26 -0
- data/test/test_testunit.rb +22 -0
- metadata +127 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'test/spec'
|
2
|
+
|
3
|
+
$foo = 0
|
4
|
+
|
5
|
+
context "Context First" do
|
6
|
+
specify "runs before Second" do
|
7
|
+
$foo.should.equal 0
|
8
|
+
$foo += 1
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
context "Context Second" do
|
13
|
+
specify "runs before Last" do
|
14
|
+
$foo.should.equal 1
|
15
|
+
$foo += 1
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
context "Context Last" do
|
20
|
+
specify "runs last" do
|
21
|
+
$foo.should.equal 2
|
22
|
+
$foo += 1
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'test/spec'
|
2
|
+
|
3
|
+
class TestTestUnit < Test::Unit::TestCase
|
4
|
+
def test_still_works_on_its_own
|
5
|
+
assert_equal 1, 1
|
6
|
+
assert_raise(RuntimeError) { raise "Error" }
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_supports_should_good_enough
|
10
|
+
(2 + 3).should.be 5
|
11
|
+
lambda { raise "Error" }.should.raise
|
12
|
+
assert true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
context "TestUnit" do
|
17
|
+
specify "works inside test/spec" do
|
18
|
+
assert_equal 1, 1
|
19
|
+
assert_raise(RuntimeError) { raise "Error" }
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
metadata
ADDED
@@ -0,0 +1,127 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: relevance-test-spec
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.0.5
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Christian Neukirchen
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain:
|
11
|
+
date: 2008-10-21 21:00:00 -07:00
|
12
|
+
default_executable:
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: echoe
|
16
|
+
type: :development
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: "0"
|
23
|
+
version:
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: allison
|
26
|
+
type: :development
|
27
|
+
version_requirement:
|
28
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: "0"
|
33
|
+
version:
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: markaby
|
36
|
+
type: :development
|
37
|
+
version_requirement:
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: "0"
|
43
|
+
version:
|
44
|
+
description: test/spec layers an RSpec-inspired interface on top of Test::Unit, so you can mix TDD and BDD (Behavior-Driven Development). test/spec is a clean-room implementation that maps most kinds of Test::Unit assertions to a `should'-like syntax. This is a fork of the main version to add some features and make thigns a bit easier for developers.
|
45
|
+
email: chneukirchen@gmail.com
|
46
|
+
executables:
|
47
|
+
- specrb
|
48
|
+
- specrb
|
49
|
+
extensions: []
|
50
|
+
|
51
|
+
extra_rdoc_files:
|
52
|
+
- bin/specrb
|
53
|
+
- CHANGELOG
|
54
|
+
- lib/test/spec/dox.rb
|
55
|
+
- lib/test/spec/focused/collector-extensions.rb
|
56
|
+
- lib/test/spec/focused/focused.rb
|
57
|
+
- lib/test/spec/rails_helper.rb
|
58
|
+
- lib/test/spec/rdox.rb
|
59
|
+
- lib/test/spec/should-output.rb
|
60
|
+
- lib/test/spec/version.rb
|
61
|
+
- lib/test/spec.rb
|
62
|
+
- README.rdoc
|
63
|
+
- SPECS
|
64
|
+
files:
|
65
|
+
- bin/specrb
|
66
|
+
- CHANGELOG
|
67
|
+
- examples/stack.rb
|
68
|
+
- examples/stack_spec.rb
|
69
|
+
- lib/test/spec/dox.rb
|
70
|
+
- lib/test/spec/focused/collector-extensions.rb
|
71
|
+
- lib/test/spec/focused/focused.rb
|
72
|
+
- lib/test/spec/rails_helper.rb
|
73
|
+
- lib/test/spec/rdox.rb
|
74
|
+
- lib/test/spec/should-output.rb
|
75
|
+
- lib/test/spec/version.rb
|
76
|
+
- lib/test/spec.rb
|
77
|
+
- Rakefile
|
78
|
+
- README.rdoc
|
79
|
+
- ROADMAP
|
80
|
+
- SPECS
|
81
|
+
- test/helper.rb
|
82
|
+
- test/spec_dox.rb
|
83
|
+
- test/spec_flexmock.rb
|
84
|
+
- test/spec_focused.rb
|
85
|
+
- test/spec_mocha.rb
|
86
|
+
- test/spec_nestedcontexts.rb
|
87
|
+
- test/spec_new_style.rb
|
88
|
+
- test/spec_should-output.rb
|
89
|
+
- test/spec_testspec.rb
|
90
|
+
- test/spec_testspec_order.rb
|
91
|
+
- test/test_testunit.rb
|
92
|
+
- TODO
|
93
|
+
- Manifest
|
94
|
+
- test-spec.gemspec
|
95
|
+
has_rdoc: true
|
96
|
+
homepage: http://github.com/relevance/test-spec
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options:
|
99
|
+
- --line-numbers
|
100
|
+
- --inline-source
|
101
|
+
- --title
|
102
|
+
- Test-spec
|
103
|
+
- --main
|
104
|
+
- README.rdoc
|
105
|
+
require_paths:
|
106
|
+
- lib
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: "0"
|
112
|
+
version:
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: "1.2"
|
118
|
+
version:
|
119
|
+
requirements: []
|
120
|
+
|
121
|
+
rubyforge_project: test-spec
|
122
|
+
rubygems_version: 1.2.0
|
123
|
+
signing_key:
|
124
|
+
specification_version: 2
|
125
|
+
summary: Relevance fork of Behaviour Driven Development interface for Test::Unit
|
126
|
+
test_files:
|
127
|
+
- test/test_testunit.rb
|