site_prism 2.17 → 2.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/site_prism.rb +3 -12
- data/lib/site_prism/element_checker.rb +3 -3
- data/lib/site_prism/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 498b5babeeb0e3bff046caaf0772e9f70c9bed419b63684de4c9387c70fd8a44
|
4
|
+
data.tar.gz: 8353b09572ca801b240831a2c9e3913a548304edc3fb08034029c8f3dcb78c77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9dc27463e54f34cba97b8ae715fdfe3730bfc8c4ab89cd10246af05451d00659403db2523664c94e8f857a1f92cc70435937496a713c3bbc1bc7349718c562b
|
7
|
+
data.tar.gz: 5a6d9beb3a2104569df8f0c2b4d2b59cf3b3ba73b50d1fc176777f6f39016a7c520ec819fea32b6cd50187864c7bfcaddb4c54014b017e1b288c56459df5b4e2
|
data/lib/site_prism.rb
CHANGED
@@ -16,30 +16,21 @@ module SitePrism
|
|
16
16
|
yield self
|
17
17
|
end
|
18
18
|
|
19
|
-
|
20
|
-
show_removed_config_warning_messages
|
21
|
-
@use_implicit_waits
|
22
|
-
end
|
19
|
+
attr_reader :use_implicit_waits
|
23
20
|
|
24
21
|
def use_implicit_waits=(value)
|
25
22
|
show_removed_config_warning_messages
|
26
23
|
@use_implicit_waits = value
|
27
24
|
end
|
28
25
|
|
29
|
-
|
30
|
-
show_removed_config_warning_messages
|
31
|
-
@raise_on_wait_fors
|
32
|
-
end
|
26
|
+
attr_reader :raise_on_wait_fors
|
33
27
|
|
34
28
|
def raise_on_wait_fors=(value)
|
35
29
|
show_removed_config_warning_messages
|
36
30
|
@raise_on_wait_fors = value
|
37
31
|
end
|
38
32
|
|
39
|
-
|
40
|
-
show_removed_config_warning_messages
|
41
|
-
@default_load_validations
|
42
|
-
end
|
33
|
+
attr_reader :default_load_validations
|
43
34
|
|
44
35
|
def default_load_validations=(value)
|
45
36
|
show_removed_config_warning_messages
|
@@ -3,11 +3,11 @@
|
|
3
3
|
module SitePrism
|
4
4
|
module ElementChecker
|
5
5
|
def all_there?
|
6
|
-
elements_to_check.all? { |element|
|
6
|
+
elements_to_check.all? { |element| there?(element) }
|
7
7
|
end
|
8
8
|
|
9
9
|
def elements_present
|
10
|
-
mapped_items.select { |item_name|
|
10
|
+
mapped_items.select { |item_name| there?(item_name) }
|
11
11
|
end
|
12
12
|
|
13
13
|
private
|
@@ -26,7 +26,7 @@ module SitePrism
|
|
26
26
|
self.class.mapped_items.uniq
|
27
27
|
end
|
28
28
|
|
29
|
-
def
|
29
|
+
def there?(element)
|
30
30
|
send("has_#{element}?")
|
31
31
|
end
|
32
32
|
end
|
data/lib/site_prism/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: site_prism
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nat Ritmeyer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-09-
|
12
|
+
date: 2018-09-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|