citrusbyte-contest 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +2 -3
- data/lib/contest.rb +1 -1
- data/test/all_test.rb +8 -1
- metadata +3 -2
data/README.markdown
CHANGED
@@ -7,13 +7,12 @@ Description
|
|
7
7
|
-----------
|
8
8
|
|
9
9
|
Write declarative tests with nested contexts without performance
|
10
|
-
penalties. Contest is less than
|
10
|
+
penalties. Contest is less than 100 lines of code and gets the job done.
|
11
11
|
|
12
12
|
Usage
|
13
13
|
-----
|
14
14
|
|
15
|
-
Declare your tests as you would in RSpec or Shoulda
|
16
|
-
are `setup`, `context` and `test`, :
|
15
|
+
Declare your tests as you would in RSpec or Shoulda:
|
17
16
|
|
18
17
|
require 'contest'
|
19
18
|
|
data/lib/contest.rb
CHANGED
data/test/all_test.rb
CHANGED
@@ -9,7 +9,10 @@ class FooTest < Test::Unit::TestCase
|
|
9
9
|
assert_equal 1, @value
|
10
10
|
end
|
11
11
|
|
12
|
-
context "context's non-word characters" do
|
12
|
+
context "context's non-word characters " do
|
13
|
+
should "run the test inside" do
|
14
|
+
assert_equal 1, @value
|
15
|
+
end
|
13
16
|
end
|
14
17
|
|
15
18
|
context "some context" do
|
@@ -66,5 +69,9 @@ class BarTest < Test::Unit::TestCase
|
|
66
69
|
test "another truth" do
|
67
70
|
assert_equal 2, @value
|
68
71
|
end
|
72
|
+
|
73
|
+
test "another truth" do
|
74
|
+
assert_equal 2, @value
|
75
|
+
end
|
69
76
|
end
|
70
77
|
end
|
metadata
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: citrusbyte-contest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damian Janowski
|
8
|
+
- Michel Martens
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
@@ -52,6 +53,6 @@ rubyforge_project:
|
|
52
53
|
rubygems_version: 1.2.0
|
53
54
|
signing_key:
|
54
55
|
specification_version: 2
|
55
|
-
summary:
|
56
|
+
summary: Write more readable tests in Test::Unit with this tiny script.
|
56
57
|
test_files: []
|
57
58
|
|