testcentricity_web 1.0.0.1 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f5fcbeb50ae89c3b6a57a35c0cbd749e7900c5e
4
- data.tar.gz: ad0050fe3bb42d8838bb1cc34219355951d3d636
3
+ metadata.gz: 9d6db7e6ae06547cf4a4548a70c2014c4014460b
4
+ data.tar.gz: 2f438c31fc9b50e24c8bafa66eb227317b8c3a72
5
5
  SHA512:
6
- metadata.gz: 265fe626b6b3e9b75cb207d71a9f0fc79fd818260ea42361acc824d2711a684d93c4adb2f85565e18e4df049e23f9c9adab4d7c9acf7408197ef53aa03c8110b
7
- data.tar.gz: bc5c1cd7de4af2d1dc73dcc87fb55928ae6cf2c1b38cf9a13c8e447dbba5b170362b273ab00214660e2d69591c7f1c163ffa9771208114aa56c0f1584fa823ac
6
+ metadata.gz: 19dcf80c2f4db319d20bf2941969065d524929fe33588b6c2e274834dc091166f46a20ac57c8bff62523139976ca2a81ed76f5e2732bf9b662e798dbeac02aea
7
+ data.tar.gz: 917233a35773eb150d59f45bcd84e9d0a30b88560bae9ca813578be701a3935e07b0874b74f32bf65c06141bb46984d3791778d2d94aad9da4a4ee079ad05589
@@ -44,6 +44,7 @@ module TestCentricity
44
44
  end
45
45
  end
46
46
 
47
+
47
48
  # Have all PageObjects been registered?
48
49
  #
49
50
  # @return [Boolean] true if all PageObjects have been registered
@@ -88,6 +89,10 @@ module TestCentricity
88
89
  @data_objects[data_type] = data_class unless @data_objects.has_key?(data_type)
89
90
  end
90
91
 
92
+ def self.find_data_object(data_object)
93
+ @data_objects[data_object]
94
+ end
95
+
91
96
  # Have all DataObjects been registered?
92
97
  #
93
98
  # @return [Boolean] true if all DataObjects have been registered
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '1.0.0.1'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -9,10 +9,10 @@ module WorldData
9
9
  return if TestCentricity::DataManager.loaded?
10
10
 
11
11
  data_objects.each do | data_type, data_class |
12
- # instantiate next data object
13
- eval("def #{data_type.to_s};@#{data_type.to_s} ||= #{data_class}.new;end")
14
12
  # register the data object
15
13
  TestCentricity::DataManager.register_data_object(data_type, data_class.new)
14
+ # instantiate the data object
15
+ eval("def #{data_type.to_s};@#{data_type.to_s} ||= TestCentricity::DataManager.find_data_object(:#{data_type.to_s});end")
16
16
  end
17
17
  end
18
18
  end
@@ -25,10 +25,10 @@ module WorldPages
25
25
  return if TestCentricity::PageManager.loaded?
26
26
 
27
27
  page_objects.each do | page_object, page_class |
28
- # instantiate next page object
29
- eval("def #{page_object.to_s};@#{page_object.to_s} ||= #{page_class}.new;end")
30
28
  # register the page object
31
29
  TestCentricity::PageManager.register_page_object(page_object, page_class.new)
30
+ # instantiate the page object
31
+ eval("def #{page_object.to_s};@#{page_object.to_s} ||= TestCentricity::PageManager.find_page(:#{page_object.to_s});end")
32
32
  end
33
33
  end
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.1
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-10 00:00:00.000000000 Z
11
+ date: 2016-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler