tracing-matchers 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tracing/matchers/have_span.rb +5 -1
- data/lib/tracing/matchers/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 800249d83ac708be40d92dc5f104babc29ee2204
|
4
|
+
data.tar.gz: 1296e66232663e8a266496f8dd0c91fc5893ae65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1908c7e3093ac5638619fbd5445ddf62c5be6b693513a9d96206b51049f56cd93f72bed3a056a9540a9b5835d73cc1fc0799651d1fde6b3e9528667844893ef9
|
7
|
+
data.tar.gz: 3c4a6badba3ba66e5d3ecc37277bc258e95345e6dbb5266570dd16f4c1edc027a60d15f338cc1c859d2f85e4462cd781e6a4e086eb7392e2553ebacb018a30ca
|
@@ -62,7 +62,7 @@ module Tracing
|
|
62
62
|
|
63
63
|
# @return [String]
|
64
64
|
def failure_message
|
65
|
-
"expected a#{expected_span_description}"
|
65
|
+
"expected a#{expected_span_description}, suggestions \n#{suggestions.map(&:to_s).join("\n")}"
|
66
66
|
end
|
67
67
|
alias :failure_message_for_should :failure_message
|
68
68
|
|
@@ -83,6 +83,10 @@ module Tracing
|
|
83
83
|
desc
|
84
84
|
end
|
85
85
|
|
86
|
+
def suggestions
|
87
|
+
@actual.empty? ? @subject.spans : @actual
|
88
|
+
end
|
89
|
+
|
86
90
|
def actual_spans
|
87
91
|
@subject.spans.select(&expected_predicate)
|
88
92
|
end
|