acceptance_test 1.11.0 → 1.11.1
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.
- checksums.yaml +8 -8
- data/CHANGES +4 -0
- data/lib/acceptance_test/acceptance_test.rb +25 -3
- data/lib/acceptance_test/version.rb +1 -1
- data/spec/wikipedia/wikipedia.yml +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWQwNGE2NTVmNTgwZTM5MjA1ZmRkYmVjZjYwMjFkZjBkZDdmZjQzMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjA3NmNmZTViYjhmNTAzZDdmODM1OWVmMWZlYjhkYjdkZTIzNTA2Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzEyNzEzMDk5Zjg1ZDg5ZDQzMjkzMDQzMGQ4ZDJmNjc4Yzc5MGE0NjU5YmJi
|
10
|
+
YTljODYzYTUwMzAzZTU3ODA3Y2FiMjg2ODI2MGVmNjkxODk4OTQxZGU4YjAw
|
11
|
+
OTcxYjQ0MzRmOWM2ZWRhYTI0M2ZmMjJhMjlhNmQ0NWZhYWVkYTc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTcyNGZkMWU1ZDJlYjA3NzY3MDg3ZWRmMWFjZmQ0NzEzZTU0YTFiODBiMmY2
|
14
|
+
NjFiMDI0ZWEzOGMxYzhlN2I2ZTY4MGY1YTY0NjJlNTk3YWMyNGQ0Y2IyNTUy
|
15
|
+
NGU4NGNhZTUwOWQzZGYwZTE2YzQxNWQwZjNmNWZjMzc1NTYxYWY=
|
data/CHANGES
CHANGED
@@ -118,10 +118,32 @@ class AcceptanceTest
|
|
118
118
|
Turnip::Builder::Step.class_eval do
|
119
119
|
def initialize *params
|
120
120
|
description = params[0]
|
121
|
-
|
122
|
-
|
121
|
+
new_description = ""
|
122
|
+
|
123
|
+
words = description.split(/\s/)
|
124
|
+
|
125
|
+
first_word = words.first
|
126
|
+
|
127
|
+
if ["I", "(I)"].include?(first_word)
|
128
|
+
new_description += first_word
|
129
|
+
else
|
130
|
+
new_description += first_word.downcase
|
131
|
+
end
|
132
|
+
|
133
|
+
words.delete first_word
|
134
|
+
|
135
|
+
words.each do |word|
|
136
|
+
new_description += " "
|
137
|
+
|
138
|
+
if word =~ /a..z|A..z|0..9/
|
139
|
+
new_description += word.downcase
|
140
|
+
else
|
141
|
+
new_description += word
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
params[0] = new_description
|
123
146
|
|
124
|
-
params[0] = first_word + description[first_word.size..-1].downcase
|
125
147
|
super
|
126
148
|
end
|
127
149
|
end
|