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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2YwMmUwODY0M2E5OGM4ZTg1YzE4YTY3NDhlYjdkZWI2MjRmODBlYQ==
4
+ YzQ4ZGIxZTYwZGM3NzFkYzFiOTZlOTRjNWNhM2U3OWIxM2ZmYmU2ZA==
5
5
  data.tar.gz: !binary |-
6
- NmI0NWVkMTk4ZWU2YzE1YzhmNzBmZTAxMWE2ZGY5MjIwNTRmNzc0OQ==
6
+ OTQ5ZDBjODhjMjhkYzZhNmMwODAxNTUyYmU0OTY2YzAyNjViMDA2Mg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MWE2Njk0Nzg2MTViOTI5YzQ3MWRhNDc5NjBjODQxN2JhZTJmNGE4ZjIxOTRk
10
- YTc3MGUzNjEwZDBjMDU0Y2FmZDMyYzlhM2E4MjQ1YjQwODgwM2NjYTU3YzY5
11
- MDczYjFkNjM2ZDc5NTA5ZmI5NjA2MTM4ZDk4YjQ3YzdkOGI0OWU=
9
+ MjhkMmNkMzYwYzRiMjUyN2RkZjc3NDZjMGM0OTYxODJjZWNhMDgwN2FlYzY4
10
+ YjViY2JmOGIxZDAzZGI2ODdlOWQ4ZDlhZWIyMjNmYzFjMDE3NjYyNzYyNTlk
11
+ NjkwYWRjOWEzYWY3ZjIwYzU3MTg5OTgwMDQxMDViMTcyMmI2OGE=
12
12
  data.tar.gz: !binary |-
13
- MTc0MTEyMmNjZDFiNDhmY2IxMjFmNTE1NDUxMWMyZDhiM2QyYjBkYzA2MDU2
14
- YmExYzY3MTEyMmVlNjVmYWYxNDBkNGJjN2NmMWUwZjIwNzVhNzE1NjQ1ZTEx
15
- MTMxMDcwNWM2N2ViMWI4OTJkNWFlMTAyYmQyMjYzZTQ2YTA2Y2E=
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'
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.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-09 00:00:00.000000000 Z
11
+ date: 2013-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: watir-webdriver