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: 4d1e82e008cc94c2cbce3317054b30dd0a275af707df1519a79e4e825451cce5
4
- data.tar.gz: 171f3593344d25e7546ea2ef30c283054d7b0d0625f84b721152a0fa3b79bc5b
3
+ metadata.gz: cc4e2dd6c7b9d47f691caabbdb0893405b75c90a71286e0ed0baf327a5a3f6e3
4
+ data.tar.gz: 88652015778c14e331d8dd7fe857cbba357572f0ef5f090da395d5a06357cb70
5
5
  SHA512:
6
- metadata.gz: ed67b7b7cc1f3064b014ca54818cbdf655b85dc4a861aa9bef891c2daa24e59aa36066b4482a436d876ccbee9411c5605d9955ca846e6673239990e7420692e7
7
- data.tar.gz: 0236f7a43696d1b002f0714d0307e1bb829fbc70530d5ac1b7c7872f368c7eb55cac925075914fb1114b5a532e170c347af5b5b0835f9190774e3b52082ade77
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?('Expected example to fail since it is pending, but it passed')
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module OnlyofficeTcmHelper
4
4
  # @return [String] version of gem
5
- VERSION = '0.3.1'
5
+ VERSION = '0.3.2'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlyoffice_tcm_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE