testdo 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.md +2 -0
- data/features/testdo.feature +25 -2
- data/lib/testdo/version.rb +1 -1
- data/lib/testdo.rb +1 -1
- metadata +3 -2
data/README.md
CHANGED
data/features/testdo.feature
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Feature: TestDO
|
1
|
+
Feature: TestDO tested on ruby-2.0.0-preview2
|
2
2
|
|
3
3
|
Scenario:
|
4
4
|
Given a file named "file.rb" with:
|
@@ -89,4 +89,27 @@ Feature: TestDO
|
|
89
89
|
"""
|
90
90
|
OK: 3
|
91
91
|
|
92
|
-
"""
|
92
|
+
"""
|
93
|
+
|
94
|
+
Scenario:
|
95
|
+
Given a file named "file.rb" with:
|
96
|
+
"""
|
97
|
+
require 'testdo'
|
98
|
+
test do
|
99
|
+
[*1..10].select { |x| x > 5 } == []
|
100
|
+
# dont use > < as expectations
|
101
|
+
# 1 > 5
|
102
|
+
# 2 > 5
|
103
|
+
# 3 > 5
|
104
|
+
# 4 > 5
|
105
|
+
# 5 > 5
|
106
|
+
end
|
107
|
+
"""
|
108
|
+
When I successfully run `ruby file.rb`
|
109
|
+
Then the output should contain exactly:
|
110
|
+
"""
|
111
|
+
Failed examples:
|
112
|
+
[6, 7, 8, 9, 10] == []
|
113
|
+
OK: 0, failed: 1
|
114
|
+
|
115
|
+
"""
|
data/lib/testdo/version.rb
CHANGED
data/lib/testdo.rb
CHANGED
@@ -10,7 +10,7 @@ module Testdo
|
|
10
10
|
class Test
|
11
11
|
include Testdo
|
12
12
|
|
13
|
-
BASIC_EXPECTATIONS = %i[== ===
|
13
|
+
BASIC_EXPECTATIONS = %i[== ===]
|
14
14
|
|
15
15
|
CAPTURE = {
|
16
16
|
[Time,Symbol,Rational,Integer,Hash,Bignum,Float,Complex,NilClass,Fixnum, Range, String, NilClass, Regexp, TrueClass, FalseClass] => BASIC_EXPECTATIONS,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testdo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cucumber
|
@@ -88,3 +88,4 @@ summary: extremely minimalistic unit test helper for ruby 2.0
|
|
88
88
|
test_files:
|
89
89
|
- features/support.rb
|
90
90
|
- features/testdo.feature
|
91
|
+
has_rdoc:
|