cuke_modeler 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +5 -0
- data/README.md +4 -4
- data/lib/cuke_modeler/step.rb +2 -0
- data/lib/cuke_modeler/test_element.rb +2 -0
- data/lib/cuke_modeler/version.rb +3 -3
- data/spec/unit/step_unit_spec.rb +9 -0
- data/spec/unit/test_element_unit_spec.rb +8 -0
- metadata +34 -15
- checksums.yaml +0 -7
data/History.rdoc
CHANGED
data/README.md
CHANGED
@@ -59,10 +59,10 @@ entire test suite.
|
|
59
59
|
|
60
60
|
### Other gems that are (or soon will be) powered by cuke_modeler
|
61
61
|
|
62
|
-
https://github.com/enkessler/
|
63
|
-
https://github.com/enkessler/
|
64
|
-
https://github.com/enkessler/
|
65
|
-
https://github.com/
|
62
|
+
* https://github.com/enkessler/cql
|
63
|
+
* https://github.com/enkessler/cuketagger
|
64
|
+
* https://github.com/enkessler/cuke_cataloger
|
65
|
+
* https://github.com/grange-insurance/cuke_slicer
|
66
66
|
|
67
67
|
## Contributing
|
68
68
|
|
data/lib/cuke_modeler/step.rb
CHANGED
@@ -67,6 +67,8 @@ module CukeModeler
|
|
67
67
|
# Returns true if the two steps have the same text, minus any keywords
|
68
68
|
# and arguments, and false otherwise.
|
69
69
|
def ==(other_step)
|
70
|
+
return false unless other_step.respond_to?(:step_text)
|
71
|
+
|
70
72
|
left_step = step_text(:with_keywords => false, :with_arguments => false)
|
71
73
|
right_step = other_step.step_text(:with_keywords => false, :with_arguments => false)
|
72
74
|
|
data/lib/cuke_modeler/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module CukeModeler
|
2
|
-
VERSION = "0.0.
|
3
|
-
end
|
1
|
+
module CukeModeler
|
2
|
+
VERSION = "0.0.2"
|
3
|
+
end
|
data/spec/unit/step_unit_spec.rb
CHANGED
@@ -256,4 +256,13 @@ describe 'Step, Unit' do
|
|
256
256
|
end
|
257
257
|
|
258
258
|
end
|
259
|
+
|
260
|
+
it 'can gracefully be compared to other types of objects' do
|
261
|
+
# Some common types of object
|
262
|
+
[1, 'foo', :bar, [], {}].each do |thing|
|
263
|
+
expect { @step == thing }.to_not raise_error
|
264
|
+
expect(@step == thing).to be false
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
259
268
|
end
|
@@ -37,4 +37,12 @@ describe 'TestElement, Unit' do
|
|
37
37
|
(element_1 == element_3).should be_false
|
38
38
|
end
|
39
39
|
|
40
|
+
it 'can gracefully be compared to other types of objects' do
|
41
|
+
# Some common types of object
|
42
|
+
[1, 'foo', :bar, [], {}].each do |thing|
|
43
|
+
expect { @element == thing }.to_not raise_error
|
44
|
+
expect(@element == thing).to be false
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
40
48
|
end
|
metadata
CHANGED
@@ -1,32 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuke_modeler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Eric Kessler
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2015-11-22 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: gherkin
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- - '>='
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '0'
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- - '>='
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0'
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: json
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ~>
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ~>
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -41,6 +46,7 @@ dependencies:
|
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: multi_json
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
51
|
- - ~>
|
46
52
|
- !ruby/object:Gem::Version
|
@@ -48,6 +54,7 @@ dependencies:
|
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
59
|
- - ~>
|
53
60
|
- !ruby/object:Gem::Version
|
@@ -55,6 +62,7 @@ dependencies:
|
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: bundler
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
67
|
- - ~>
|
60
68
|
- !ruby/object:Gem::Version
|
@@ -62,6 +70,7 @@ dependencies:
|
|
62
70
|
type: :development
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
75
|
- - ~>
|
67
76
|
- !ruby/object:Gem::Version
|
@@ -69,34 +78,39 @@ dependencies:
|
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: rake
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
|
-
- - '>='
|
83
|
+
- - ! '>='
|
74
84
|
- !ruby/object:Gem::Version
|
75
85
|
version: '0'
|
76
86
|
type: :development
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
|
-
- - '>='
|
91
|
+
- - ! '>='
|
81
92
|
- !ruby/object:Gem::Version
|
82
93
|
version: '0'
|
83
94
|
- !ruby/object:Gem::Dependency
|
84
95
|
name: cucumber
|
85
96
|
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
86
98
|
requirements:
|
87
|
-
- - '>='
|
99
|
+
- - ! '>='
|
88
100
|
- !ruby/object:Gem::Version
|
89
101
|
version: '0'
|
90
102
|
type: :development
|
91
103
|
prerelease: false
|
92
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
93
106
|
requirements:
|
94
|
-
- - '>='
|
107
|
+
- - ! '>='
|
95
108
|
- !ruby/object:Gem::Version
|
96
109
|
version: '0'
|
97
110
|
- !ruby/object:Gem::Dependency
|
98
111
|
name: rspec
|
99
112
|
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
100
114
|
requirements:
|
101
115
|
- - ~>
|
102
116
|
- !ruby/object:Gem::Version
|
@@ -104,6 +118,7 @@ dependencies:
|
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
107
122
|
requirements:
|
108
123
|
- - ~>
|
109
124
|
- !ruby/object:Gem::Version
|
@@ -111,15 +126,17 @@ dependencies:
|
|
111
126
|
- !ruby/object:Gem::Dependency
|
112
127
|
name: simplecov
|
113
128
|
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
114
130
|
requirements:
|
115
|
-
- - '>='
|
131
|
+
- - ! '>='
|
116
132
|
- !ruby/object:Gem::Version
|
117
133
|
version: '0'
|
118
134
|
type: :development
|
119
135
|
prerelease: false
|
120
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
121
138
|
requirements:
|
122
|
-
- - '>='
|
139
|
+
- - ! '>='
|
123
140
|
- !ruby/object:Gem::Version
|
124
141
|
version: '0'
|
125
142
|
description:
|
@@ -252,26 +269,27 @@ files:
|
|
252
269
|
homepage: https://github.com/enkessler/cuke_modeler
|
253
270
|
licenses:
|
254
271
|
- MIT
|
255
|
-
metadata: {}
|
256
272
|
post_install_message:
|
257
273
|
rdoc_options: []
|
258
274
|
require_paths:
|
259
275
|
- lib
|
260
276
|
required_ruby_version: !ruby/object:Gem::Requirement
|
277
|
+
none: false
|
261
278
|
requirements:
|
262
|
-
- - '>='
|
279
|
+
- - ! '>='
|
263
280
|
- !ruby/object:Gem::Version
|
264
281
|
version: '0'
|
265
282
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
283
|
+
none: false
|
266
284
|
requirements:
|
267
|
-
- - '>='
|
285
|
+
- - ! '>='
|
268
286
|
- !ruby/object:Gem::Version
|
269
287
|
version: '0'
|
270
288
|
requirements: []
|
271
289
|
rubyforge_project:
|
272
|
-
rubygems_version:
|
290
|
+
rubygems_version: 1.8.29
|
273
291
|
signing_key:
|
274
|
-
specification_version:
|
292
|
+
specification_version: 3
|
275
293
|
summary: A gem providing functionality to model a Cucumber test suite.
|
276
294
|
test_files:
|
277
295
|
- features/analysis/test_comparison.feature
|
@@ -362,3 +380,4 @@ test_files:
|
|
362
380
|
- spec/unit/test_element_unit_spec.rb
|
363
381
|
- spec/unit/test_element_unit_specs.rb
|
364
382
|
- spec/unit/world_unit_spec.rb
|
383
|
+
has_rdoc:
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 876bbe0bbe75f460596777b28b51a51bd3347c01
|
4
|
-
data.tar.gz: 5ee73b6f5366259721f57dbca7ca7120b9497243
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: f8b1099a66acacf4442cc6d5a64f61ae52762727fe8f70279a6049b450de56b49335b502ec7ecbc84395404ac0081df7792a6de6a2b6f6e7c1bbcb361e590a36
|
7
|
-
data.tar.gz: 387d74e18f8be3cd4b028f8f2d1e79660ee67041636f701af58601bf660b9731e97ed5482e4c91add71f8f33856b05274e785dacd79c5a19d6e4a4f9749b2bf6
|