testdo 0.0.6 → 0.0.7
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/features/testdo.feature +3 -1
- data/lib/testdo.rb +2 -2
- data/lib/testdo/version.rb +1 -1
- metadata +1 -1
data/features/testdo.feature
CHANGED
@@ -82,12 +82,14 @@ Feature: TestDO tested on ruby-2.0.0-preview2
|
|
82
82
|
a = %w[a b]
|
83
83
|
a.equal? a
|
84
84
|
{a: 1} == {a: 1}
|
85
|
+
Array == Array
|
86
|
+
Array != String
|
85
87
|
end
|
86
88
|
"""
|
87
89
|
When I successfully run `ruby file.rb`
|
88
90
|
Then the output should contain exactly:
|
89
91
|
"""
|
90
|
-
OK:
|
92
|
+
OK: 5
|
91
93
|
|
92
94
|
"""
|
93
95
|
|
data/lib/testdo.rb
CHANGED
@@ -10,10 +10,10 @@ 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
|
-
[Time,Symbol,Rational,Integer,Hash,Bignum,Float,Complex,NilClass,Fixnum, Range, String, NilClass, Regexp, TrueClass, FalseClass] => BASIC_EXPECTATIONS,
|
16
|
+
[Class,Time,Symbol,Rational,Integer,Hash,Bignum,Float,Complex,NilClass,Fixnum, Range, String, NilClass, Regexp, TrueClass, FalseClass] => BASIC_EXPECTATIONS,
|
17
17
|
[Array] => %i[include? all? any? empty? one? none? member? equal?] + BASIC_EXPECTATIONS }
|
18
18
|
|
19
19
|
def initialize(capture: CAPTURE)
|
data/lib/testdo/version.rb
CHANGED