onlyoffice_tcm_helper 0.3.1 → 0.3.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc4e2dd6c7b9d47f691caabbdb0893405b75c90a71286e0ed0baf327a5a3f6e3
|
4
|
+
data.tar.gz: 88652015778c14e331d8dd7fe857cbba357572f0ef5f090da395d5a06357cb70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ed58205f39d78c73c355ce4032c59010bd523ccd1c89232c55d99ed6d806a11f4de52bd2052bf9f7a6f84cc7400074f25bb4ba96be7e3df2a2f07f53249b0e9
|
7
|
+
data.tar.gz: 4426f7931f7088156736c836f3316cd7b6ccaf96a1858712f446dc26cede2de44f71651ec34465969cbe96f31b0bbc04d80bacd54849d865e6aa68903c9d9849
|
@@ -3,13 +3,18 @@
|
|
3
3
|
module OnlyofficeTcmHelper
|
4
4
|
# module with methods for parsing test results
|
5
5
|
module PendingHelper
|
6
|
+
# @return [String] Message if pending passed
|
7
|
+
def passed_pending_message
|
8
|
+
'Expected example to fail since it is pending, but it passed'
|
9
|
+
end
|
10
|
+
|
6
11
|
# Check if pending example passed
|
7
12
|
# This situation is incorrect - if pending is passing for some reason
|
8
13
|
# This pending comment should be removed and investigate
|
9
14
|
# @param [String] exception text of example
|
10
15
|
# @return [Boolean]
|
11
16
|
def pending_passed?(exception)
|
12
|
-
exception.start_with?(
|
17
|
+
exception.start_with?(passed_pending_message)
|
13
18
|
end
|
14
19
|
|
15
20
|
# Get pending status by it's comment
|
@@ -17,6 +22,7 @@ module OnlyofficeTcmHelper
|
|
17
22
|
# @return [Symbol] `:failed` or `:pending`
|
18
23
|
def pending_status(exception)
|
19
24
|
if pending_passed?(exception)
|
25
|
+
@comment = "#{passed_pending_message}\nOriginal Pending:\n#{@comment}"
|
20
26
|
:failed
|
21
27
|
else
|
22
28
|
:pending
|