test-factory 0.3.3 → 0.3.4
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 +14 -0
- data/test-factory.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzQ4ZGIxZTYwZGM3NzFkYzFiOTZlOTRjNWNhM2U3OWIxM2ZmYmU2ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTQ5ZDBjODhjMjhkYzZhNmMwODAxNTUyYmU0OTY2YzAyNjViMDA2Mg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjhkMmNkMzYwYzRiMjUyN2RkZjc3NDZjMGM0OTYxODJjZWNhMDgwN2FlYzY4
|
10
|
+
YjViY2JmOGIxZDAzZGI2ODdlOWQ4ZDlhZWIyMjNmYzFjMDE3NjYyNzYyNTlk
|
11
|
+
NjkwYWRjOWEzYWY3ZjIwYzU3MTg5OTgwMDQxMDViMTcyMmI2OGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmE2MmNjOGY2NzUwN2QwNzgyMWZmNWQ4ZWQwNWY1MWQ5NzFiMDg4NWFlYjcx
|
14
|
+
ZDMyYzZhY2FiMTEwNzFjMTViNzAzYmZhNGQwMjk4ZDMyMmQyYTRmOGE0ZTJh
|
15
|
+
NjEwMDIzZjc4NWQ0NDcyZGRmZmIyNThlZDIxMGJhNWVmMzNmOTA=
|
@@ -26,6 +26,20 @@ module DataFactory
|
|
26
26
|
end
|
27
27
|
alias update_options set_options
|
28
28
|
|
29
|
+
# Use for setting a data object's class instance variable as a nested collection class.
|
30
|
+
#
|
31
|
+
# This method assumes your collection class name ends with "Collection". Therefore,
|
32
|
+
# the string you pass in its parameter is the first part of the class name.
|
33
|
+
#
|
34
|
+
# E.g., your collection class is called "DataObjectCollection", so, inside your
|
35
|
+
# parent object's defaults, you'd set the instance variable like this:
|
36
|
+
#
|
37
|
+
# data_objects: collection('DataObject')
|
38
|
+
#
|
39
|
+
def collection(name)
|
40
|
+
Kernel.const_get("#{name}Collection").new(@browser)
|
41
|
+
end
|
42
|
+
|
29
43
|
# Items passed to this method are checked to ensure that the associated class instance variable
|
30
44
|
# is not nil. If it is, the script is aborted and an error is thrown. Use symbols separated
|
31
45
|
# by commas with this method. The symbol(s) should exactly match the name of the instance
|
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.4'
|
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.4
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: watir-webdriver
|