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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 453bdb76b19f9217b2e1ef3149f1f787b6bee188
4
- data.tar.gz: 951d8e59a64ae2ed9f01f18e427b051c901e5d36
3
+ metadata.gz: 800249d83ac708be40d92dc5f104babc29ee2204
4
+ data.tar.gz: 1296e66232663e8a266496f8dd0c91fc5893ae65
5
5
  SHA512:
6
- metadata.gz: 76455d6e26271679fa9f5c5ece791be45063a329f44a969f9d7e7f7768ca6f1c57099640f178013d29304649fbb52ce0b02184861f8a526cb39350de74a672de
7
- data.tar.gz: 8d2a86f4590c50b52b759f79da0920bd3ed1ea5064384d1422081b94f9c687d7acd4a9a0f9d2e3ee70d796a50d66d16de39116be00a03b5957e88342ce4c4f80
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
@@ -1,5 +1,5 @@
1
1
  module Tracing
2
2
  module Matchers
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracing-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - iaintshine