test-factory 0.3.7 → 0.3.8
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/lib/test-factory/data_factory.rb +4 -4
- data/test-factory.gemspec +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
|
+
MzU4MWU4YjViOTQ0MmYwMTZkYjljNzZiZjlkYTE0NTg4YWMwMWE4Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWY4MDQzYmEzZjQyMDQzYTJiY2UyODg1ZjllYmUwYjM2NTYzMmJlZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDMzYWZlNjZjYjhhYjE5NDVlYmIxMWZhMTgzYTMyZjc5ZjUxYTgzYzNhMzM0
|
10
|
+
ZWZiOGMyNDljYzUzYjcyY2Q5YjM5MWNiMjNkMWNjYmJmM2U3MDc1MmNkNjNk
|
11
|
+
MWY5ZTY2YTdiYmIyM2Y5NGQ0YTBmMDY2ZmFmNDE5ODllMTlkNGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDFmNGUwYjZjNTFmN2ZkNDg3M2QzMzU1MGIzY2I3N2ZjMDY5MDM1ODUwYmQ1
|
14
|
+
NDVkOTkyYWI2YWUyOTA3YjhmMDYwZDA4NjA1ZmI3YWYxZGQ0MWRjZTljMzM1
|
15
|
+
MGRhNWM3ZWMxYzljYmVkYzRiYmMwYTJiYzQ0ZDVlNmJjNjliNjg=
|
@@ -110,8 +110,8 @@ module DataFactory
|
|
110
110
|
# end
|
111
111
|
#
|
112
112
|
def fill_out(page, *fields)
|
113
|
-
watir_methods=[ lambda{|p, f| p.send(f).fit(instance_variable_get f) },
|
114
|
-
lambda{|p, f| p.send(f).pick!(instance_variable_get f) } ]
|
113
|
+
watir_methods=[ lambda{|p, f| p.send(f).fit(instance_variable_get "@#{f}") },
|
114
|
+
lambda{|p, f| p.send(f).pick!(instance_variable_get "@#{f}") } ]
|
115
115
|
fields.shuffle.each do |field|
|
116
116
|
x = page.send(field).class.to_s=='Watir::Select' ? 1 : 0
|
117
117
|
watir_methods[x].call(page, field)
|
@@ -128,8 +128,8 @@ module DataFactory
|
|
128
128
|
# end
|
129
129
|
#
|
130
130
|
def fill_out_item(name, page, *fields)
|
131
|
-
watir_methods=[ lambda{|n, p, f| p.send(f, n).fit(instance_variable_get f) },
|
132
|
-
lambda{|n, p, f| p.send(f, n).pick!(instance_variable_get f) } ]
|
131
|
+
watir_methods=[ lambda{|n, p, f| p.send(f, n).fit(instance_variable_get "@#{f}") },
|
132
|
+
lambda{|n, p, f| p.send(f, n).pick!(instance_variable_get "@#{f}") } ]
|
133
133
|
fields.shuffle.each do |field|
|
134
134
|
x = page.send(field, name).class.to_s=='Watir::Select' ? 1 : 0
|
135
135
|
watir_methods[x].call(name, page, field)
|
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.8'
|
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("**/**/**")
|