testdo 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Testdo
2
2
 
3
+ tested on ruby-2.0.0-preview2
4
+
3
5
  TODO: Write a gem description
4
6
 
5
7
  ## Installation
@@ -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
+ """
@@ -1,3 +1,3 @@
1
1
  module Testdo
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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-24 00:00:00.000000000 Z
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: