test-factory 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/test-factory/gem_ext.rb +8 -5
- data/test-factory.gemspec +1 -1
- metadata +2 -3
- data/test-factory-0.3.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2YwMmUwODY0M2E5OGM4ZTg1YzE4YTY3NDhlYjdkZWI2MjRmODBlYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmI0NWVkMTk4ZWU2YzE1YzhmNzBmZTAxMWE2ZGY5MjIwNTRmNzc0OQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWE2Njk0Nzg2MTViOTI5YzQ3MWRhNDc5NjBjODQxN2JhZTJmNGE4ZjIxOTRk
|
10
|
+
YTc3MGUzNjEwZDBjMDU0Y2FmZDMyYzlhM2E4MjQ1YjQwODgwM2NjYTU3YzY5
|
11
|
+
MDczYjFkNjM2ZDc5NTA5ZmI5NjA2MTM4ZDk4YjQ3YzdkOGI0OWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTc0MTEyMmNjZDFiNDhmY2IxMjFmNTE1NDUxMWMyZDhiM2QyYjBkYzA2MDU2
|
14
|
+
YmExYzY3MTEyMmVlNjVmYWYxNDBkNGJjN2NmMWUwZjIwNzVhNzE1NjQ1ZTEx
|
15
|
+
MTMxMDcwNWM2N2ViMWI4OTJkNWFlMTAyYmQyMjYzZTQ2YTA2Y2E=
|
data/lib/test-factory/gem_ext.rb
CHANGED
@@ -166,6 +166,7 @@ module Watir
|
|
166
166
|
# list and, assuming what you passed it was a class instance
|
167
167
|
# variable, it will be updated to contain the
|
168
168
|
# selected value (hence the ! in the method name).
|
169
|
+
# Note that this method will be slow with large selection lists.
|
169
170
|
#
|
170
171
|
# @example
|
171
172
|
# @my_selection='::random::'
|
@@ -183,11 +184,13 @@ module Watir
|
|
183
184
|
private
|
184
185
|
|
185
186
|
def select_at_random
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
187
|
+
ar = options.map(&:text)
|
188
|
+
sel = ar.sample
|
189
|
+
while sel=~/^select(.?)$/i || sel==''
|
190
|
+
sel = ar.sample
|
191
|
+
end
|
192
|
+
select sel
|
193
|
+
sel
|
191
194
|
end
|
192
195
|
|
193
196
|
end
|
data/test-factory.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
spec = Gem::Specification.new do |s|
|
2
2
|
s.name = 'test-factory'
|
3
|
-
s.version = '0.3.
|
3
|
+
s.version = '0.3.3'
|
4
4
|
s.summary = %q{rSmart's framework for creating automated testing scripts}
|
5
5
|
s.description = %q{This gem provides a set of modules and methods to help quickly and DRYly create a test automation framework using Ruby and Watir (or watir-webdriver).}
|
6
6
|
s.files = Dir.glob("**/**/**")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-factory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abraham Heward
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: watir-webdriver
|
@@ -46,7 +46,6 @@ files:
|
|
46
46
|
- lib/test-factory.rb
|
47
47
|
- LICENSE
|
48
48
|
- README.md
|
49
|
-
- test-factory-0.3.1.gem
|
50
49
|
- test-factory.gemspec
|
51
50
|
homepage: https://github.com/rSmart
|
52
51
|
licenses: []
|
data/test-factory-0.3.1.gem
DELETED
Binary file
|