test-factory 0.4.5 → 0.4.6
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/data_factory.rb +16 -5
- 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
|
+
YzJjZGE4NGVmZmNkZmVlNGVjNjVjOGQ1ZGY4NzYxMTk0ZmE2ZjhlOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjA2NzU1NDY5ZGI5MTU5Mzk2YjkxZjczNzhiZDJlNzU3ZjFiYWU5Mg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjE1YzUxYzU2ODk1N2NlODM3YmYwNmZiNmE0ZjljZDEwNGMwNGEwMjllMWY0
|
10
|
+
NDRmZTYyNGJhZTc2ZjMwOGY0ZWY4NDc5NTU0MzE3M2UxMjk4MDgwNWE5MDdi
|
11
|
+
ZTE2M2NlNTBiZDIyNjM3NjA2NjkxMjUxMWQ2MjFjYzQwYjhhMTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDc5YjAyMDlkOWUyOTg4NTk5NjdmY2ZkNDAxYjRiOTQ4NWMzZGYyZDdkOTQ1
|
14
|
+
OWFiYWVjNGRhOGIyMWQxMzFjOGFhZDNhOTYyMWZlNzMzNGE2NTY0NWQ4ZjI2
|
15
|
+
YzEwZDc4MmYzODI5NTE1MzE5MTQwNjc4NjdkYmRlMDA2NTM5MjM=
|
@@ -60,7 +60,7 @@ class DataFactory
|
|
60
60
|
# @param hash [Hash] Contains all options required for creating the needed Data Object
|
61
61
|
#
|
62
62
|
def set_options(hash)
|
63
|
-
@collections
|
63
|
+
@collections ||= []
|
64
64
|
hash.each do |key, value|
|
65
65
|
instance_variable_set("@#{key}", value)
|
66
66
|
@collections << key if value.kind_of?(CollectionsFactory)
|
@@ -344,19 +344,30 @@ class DataFactory
|
|
344
344
|
|
345
345
|
end
|
346
346
|
|
347
|
-
#
|
347
|
+
# Will soon be removed...
|
348
348
|
class DataObject < DataFactory
|
349
349
|
|
350
|
-
|
351
|
-
|
350
|
+
def set_options(hash)
|
351
|
+
|
352
|
+
warn %{
|
353
|
+
Welcome to version 0.4.6!
|
352
354
|
|
353
355
|
Please update all your Data Object classes to
|
354
356
|
inherit from DataFactory
|
355
357
|
instead of DataObject.
|
356
358
|
|
359
|
+
You still need to update this class: #{self.class}
|
360
|
+
|
357
361
|
Note that in the future this warning will be going
|
358
362
|
away. You'll just get an error, so
|
359
363
|
be sure you update your project soon!
|
360
|
-
|
364
|
+
}
|
365
|
+
|
366
|
+
@collections ||= []
|
367
|
+
hash.each do |key, value|
|
368
|
+
instance_variable_set("@#{key}", value)
|
369
|
+
@collections << key if value.kind_of?(CollectionsFactory)
|
370
|
+
end
|
371
|
+
end
|
361
372
|
|
362
373
|
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.4.
|
3
|
+
s.version = '0.4.6'
|
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("**/**/**")
|