itms_automation 2.7.2 → 2.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/itms_automation/methods/assertion_methods.rb +16 -12
- data/lib/itms_automation/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7916ef1a1a630922d53d189878ff3edf3b4466c199213842671795f632146da
|
4
|
+
data.tar.gz: ebca6f2d5493f54b14cb4ef55eff42b3681c85d5f113c2089cf60275cf81b137
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 244628234f2b20783afde4fb77e18f375aaad736f7182046fe86252a9c9f689b1ef068f394540a0d4868da68f8d16598c3484196138d1dd1e2831fe619c313c8
|
7
|
+
data.tar.gz: efdc15d496b32f9a100d0f56a3f303221abced561c2e5fc2aadd824477c8a42d6d446c705dbd3e6a4fc40348e2f4ba7e02a3a3a33450f0079750a888516233fe
|
@@ -103,14 +103,16 @@ def assert_selected_value
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def assert(var_name, value)
|
106
|
-
if (value == "true" || value == "false")
|
106
|
+
if (value == "true" || value == "false")
|
107
107
|
_value = value
|
108
|
-
|
108
|
+
else elseif (value == '0' || !!number_or_nil(value))
|
109
109
|
_value = value
|
110
|
-
|
111
|
-
result = _value
|
112
|
-
|
113
|
-
|
110
|
+
end
|
111
|
+
result = if _value
|
112
|
+
expect($vars[var_name]).to eq(_value)
|
113
|
+
else
|
114
|
+
expect($vars[var_name]).to eq(value)
|
115
|
+
end
|
114
116
|
end
|
115
117
|
|
116
118
|
# Method to verify title
|
@@ -195,14 +197,16 @@ def verify_selected_value
|
|
195
197
|
end
|
196
198
|
|
197
199
|
def verify(var_name, value)
|
198
|
-
if (value == "true" || value == "false")
|
200
|
+
if (value == "true" || value == "false")
|
199
201
|
_value = value
|
200
|
-
|
202
|
+
else elseif (value == '0' || !!number_or_nil(value))
|
201
203
|
_value = value
|
202
|
-
|
203
|
-
result = _value
|
204
|
-
|
205
|
-
|
204
|
+
end
|
205
|
+
result = if _value
|
206
|
+
expect($vars[var_name]).to eq(_value)
|
207
|
+
else
|
208
|
+
expect($vars[var_name]).to eq(value)
|
209
|
+
end
|
206
210
|
end
|
207
211
|
|
208
212
|
# Method to find difference between images
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itms_automation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- INFOdation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.1.2
|
20
20
|
- - "~>"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 3.1.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 3.1.2
|
30
30
|
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 3.1.2
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: webdrivers
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|