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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjgxMjY2N2VjY2FiNjA5MjA3MmRhZmQ3Yzc4NWJkY2UxNmNlNjQ5Zg==
4
+ NWQwNGE2NTVmNTgwZTM5MjA1ZmRkYmVjZjYwMjFkZjBkZDdmZjQzMA==
5
5
  data.tar.gz: !binary |-
6
- ZmMzNTQ1NDc4MjBhNDA1ZGZlMjQ1OTM5NTFlMTE3NGM3NjZmMjZmZA==
6
+ YjA3NmNmZTViYjhmNTAzZDdmODM1OWVmMWZlYjhkYjdkZTIzNTA2Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Zjc1ODU4OWRmNTk2MGI5YmIwNjEwNGI5NjJiN2JhNzZlYzZiNGMyMTU2ZDNh
10
- ZThjNDhiM2VlNjNmOTdlMmQ2M2IzZmZjMjQzNDI0Y2M1OTAxMDUzNGNkMDI2
11
- ZmY3YzhlZTU0YWUwNmIxNDQzMTM5MTdlYjJjNDJmOTNmNjc1OTQ=
9
+ NzEyNzEzMDk5Zjg1ZDg5ZDQzMjkzMDQzMGQ4ZDJmNjc4Yzc5MGE0NjU5YmJi
10
+ YTljODYzYTUwMzAzZTU3ODA3Y2FiMjg2ODI2MGVmNjkxODk4OTQxZGU4YjAw
11
+ OTcxYjQ0MzRmOWM2ZWRhYTI0M2ZmMjJhMjlhNmQ0NWZhYWVkYTc=
12
12
  data.tar.gz: !binary |-
13
- NTA2ODJkNzEyYjkyZTJhM2U2ZjYyZDhlZDEyMjQyZTg4MTAyM2NiMzlmMjg1
14
- ZjgyZGI5Nzg1MDRiNTJkZTc1YTAwYmYzMDAzZTYzMmY5N2RhM2YwNTUyMTVj
15
- NDQ2MWNhYWZiZmQzNWVjYTg1MjljNTU0NjI2M2MzY2FhOWZlYTM=
13
+ MTcyNGZkMWU1ZDJlYjA3NzY3MDg3ZWRmMWFjZmQ0NzEzZTU0YTFiODBiMmY2
14
+ NjFiMDI0ZWEzOGMxYzhlN2I2ZTY4MGY1YTY0NjJlNTk3YWMyNGQ0Y2IyNTUy
15
+ NGU4NGNhZTUwOWQzZGYwZTE2YzQxNWQwZjNmNWZjMzc1NTYxYWY=
data/CHANGES CHANGED
@@ -313,3 +313,7 @@
313
313
 
314
314
  * Refactoring classes
315
315
 
316
+ == Versions 1.11.1
317
+
318
+ * Bug fixes
319
+
@@ -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
- first_word = description[0..description.index(/\s/)]
122
- first_word = downcase unless ["I ", "(I) "].include?(first_word)
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
@@ -1,3 +1,3 @@
1
1
  class AcceptanceTest
2
- VERSION = "1.11.0"
2
+ VERSION = "1.11.1"
3
3
  end
@@ -9,7 +9,7 @@ browser: chrome
9
9
 
10
10
  driver: selenium
11
11
 
12
- timeout_in_seconds: 40
12
+ timeout_in_seconds: 10
13
13
 
14
14
  #browser_binaries:
15
15
  # firefox: /Applications/Firefox.app/Contents/MacOS/firefox-bin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acceptance_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets