site_prism-all_there 3.0.2 → 3.0.4

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
  SHA256:
3
- metadata.gz: 14a223d06f824b7e67e41ee0bf0a8a6b31debabb74eff816c2c86fe8d3bd1fc3
4
- data.tar.gz: e9dc0cccbb0acbbb5e720bfa1c2ee3326af5b0beabb8b99ccf36e0d1f55fc2bb
3
+ metadata.gz: 53286b9be483d5d1ecc944bb4a3a18a097a88987d92573f5ba6a69a328d5f026
4
+ data.tar.gz: 43ff06ddfa332e6ac640f22d429f64bc3713658d0262a9ae5283b7f77498c530
5
5
  SHA512:
6
- metadata.gz: ad296627b3e2d735950b457d0a5e9065f575020a6fb0059137a977be69776504e8429b30821dd96e882ee5415549fbe99db88e6550e1ad9b5d66b928a1b5a47c
7
- data.tar.gz: a87debaa8ffa1cd44722f76b1a36bdc8fda68a6fd4465a7089909b050f88e443d9af2c42111ab5dc4885042dfdcd7c6157f93244fe6d52af27770fb8216b8a50
6
+ metadata.gz: 131f840da5fa40429421d17c0196fbfb452ba5b9a7f934b91f9f9e7818b1e7793cb6a6fdf387593163fa04634c4d24969730ba42969b053a978e9fb960bcc45e
7
+ data.tar.gz: 3a04752bcb3dc6735801b01a97fdd7dd773e3906d63d35d8a25d4b04047e980165395d924838ce0999698a706c37e5443cc31edb1f6f80f3f2f058933cbbe9aa
@@ -36,20 +36,26 @@ module SitePrism
36
36
 
37
37
  def current_class_all_there?(**opts)
38
38
  expected_items.array.flatten.all? { |name| there?(name, **opts) }.tap do |result|
39
- SitePrism.logger.debug("Result of current_class_all_there?: #{result}")
39
+ SitePrism.logger.debug("Result of current_class_all_there? for #{instance.class}: #{result}")
40
40
  end
41
41
  end
42
42
 
43
43
  def section_classes_all_there?(**opts)
44
44
  section_classes_to_check.all? { |section| section.all_there?(**opts) }.tap do |result|
45
- SitePrism.logger.debug("Result of section_classes_all_there?: #{result}")
45
+ SitePrism.logger.debug("Result of section_classes_all_there? for #{instance.class}: #{result}")
46
46
  end
47
+ rescue Capybara::ElementNotFound
48
+ SitePrism.logger.error("Error whilst attempting to locate all section classes from within #{instance.class}")
49
+ false
47
50
  end
48
51
 
49
52
  def sections_classes_all_there?(**opts)
50
53
  sections_classes_to_check.flatten.all? { |section| section.all_there?(**opts) }.tap do |result|
51
- SitePrism.logger.debug("Result of sections_classes_all_there?: #{result}")
54
+ SitePrism.logger.debug("Result of sections_classes_all_there? for #{instance.class}: #{result}")
52
55
  end
56
+ rescue Capybara::ElementNotFound
57
+ SitePrism.logger.error("Error whilst attempting to locate all sections (plural), classes from within #{instance.class}")
58
+ false
53
59
  end
54
60
 
55
61
  def section_classes_to_check
@@ -65,7 +71,7 @@ module SitePrism
65
71
  end
66
72
 
67
73
  def there?(name, **opts)
68
- instance.send("has_#{name}?", **opts)
74
+ instance.send(:"has_#{name}?", **opts)
69
75
  end
70
76
  end
71
77
  end
@@ -4,6 +4,6 @@ module SitePrism
4
4
  module AllThere
5
5
  # @return [String]
6
6
  # Version of the gem
7
- VERSION = '3.0.2'
7
+ VERSION = '3.0.4'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site_prism-all_there
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Hill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-13 00:00:00.000000000 Z
11
+ date: 2024-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -30,42 +30,42 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.57.2
33
+ version: 1.61.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.57.2
40
+ version: 1.61.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-performance
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.19.1
47
+ version: 1.21.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.19.1
54
+ version: 1.21.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.25.0
61
+ version: 2.26.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.25.0
68
+ version: 2.26.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: site_prism
71
71
  requirement: !ruby/object:Gem::Requirement