testdo 0.0.2 → 0.0.3

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.
@@ -71,4 +71,19 @@ Feature: TestDO
71
71
  ["a", "b"] all?
72
72
  OK: 0, failed: 1
73
73
 
74
- """
74
+ """
75
+
76
+ Scenario:
77
+ Given a file named "file.rb" with:
78
+ """
79
+ require 'testdo'
80
+ test do
81
+ %w[a b] == %w[a b]
82
+ end
83
+ """
84
+ When I successfully run `ruby file.rb`
85
+ Then the output should contain exactly:
86
+ """
87
+ OK: 1
88
+
89
+ """
@@ -1,3 +1,3 @@
1
1
  module Testdo
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/testdo.rb CHANGED
@@ -10,9 +10,11 @@ module Testdo
10
10
  class Test
11
11
  include Testdo
12
12
 
13
+ BASIC_EXPECTATIONS = %i[== === > < =~]
14
+
13
15
  CAPTURE = {
14
- [Fixnum, Range, String, NilClass, Regexp, TrueClass, FalseClass] => %i[== === > < =~],
15
- [Array] => %i[include? all? any? empty? one? none? member?] }
16
+ [Fixnum, Range, String, NilClass, Regexp, TrueClass, FalseClass] => BASIC_EXPECTATIONS,
17
+ [Array] => %i[include? all? any? empty? one? none? member?] + BASIC_EXPECTATIONS }
16
18
 
17
19
  def initialize(capture: CAPTURE)
18
20
  @capture = capture
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.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: