expresenter 1.2.0 → 1.2.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
  SHA256:
3
- metadata.gz: 3460d51122770c7fdd769a71726f8ac91f7ee55d2a97008aac27137aaeb09a43
4
- data.tar.gz: 2dfe5bac23440dd3a48e75d103da7dd3e12809936f7d3df02a299d7023328286
3
+ metadata.gz: c3d9ca739d1a34b11ea226e77c5c3e5110ca38fb8d3f3d16b9497c69233d4447
4
+ data.tar.gz: a1678358865fb1a8441c9e0837bc3fe1ff683edb9dc9ffa4b4f4d44e56a27696
5
5
  SHA512:
6
- metadata.gz: d50f24c95d16d6417422c15c060c81b42d9e77f9426c3c7466c066f13f9de76a4e1f1c7dd73c70485e099b20a3e05c94c07c4c640fd796c1d927a217d764acfe
7
- data.tar.gz: 7f8c9d1c7e6979766be2600d1db0b630ff9ab377f9223e5d8e8b4e874dfb6bd57ec3326a0c16fbf416034c7307c2b056d18bb8b151bdb32edbdd4763e919d427
6
+ metadata.gz: 7d6d061a3d4b0d7027cc096610dad1d2e2dbdb73aab181493567f51dc81f27210e5cf05e4e1dab6255583d7ee2a563abda6d320fe9f6655dfd6e93bf8fa4fc26
7
+ data.tar.gz: b737a22e6218ae12a67540360b19086f997d01f1a2d9f57bd0a4eb2ad7a978f7d83de078ade37241bcf86c1fa0102eaed374094eb053683fe50f804197bd3083
data/lib/expresenter.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  # Namespace for the Expresenter library.
4
4
  #
5
5
  # @example A passed expectation result presenter.
6
- # Expresenter.call(true).with(actual: "FOO", error: nil, expected: "foo", got: true, negate: true, valid: true, matcher: :eql, level: :MUST)
6
+ # Expresenter.call(true).with(actual: "FOO", error: nil, expected: "foo", got: true, negate: true, valid: true, matcher: :eql, level: :MUST) # => Expresenter::Pass(actual: "FOO", error: nil, expected: "foo", got: true, matcher: :eql, negate: true, level: :MUST, valid: true)
7
7
  module Expresenter
8
8
  # @param is_passed [Boolean] The value of an assertion.
9
9
  # @return [Class<Pass>, Class<Fail>] The class of the result.
@@ -18,7 +18,7 @@ module Expresenter
18
18
  # actual value and the expected value through the matcher.
19
19
  attr_reader :got
20
20
 
21
- # @return [#object_id] The matcher.
21
+ # @return [Symbol] The matcher.
22
22
  attr_reader :matcher
23
23
 
24
24
  # @return [:MUST, :SHOULD, :MAY] The requirement level of the expectation.
@@ -78,7 +78,7 @@ module Expresenter
78
78
  #
79
79
  # @return [String] A readable string of the definition.
80
80
  def definition
81
- [matcher, expected&.inspect].compact.join(SPACE)
81
+ [matcher.to_s.tr("_", " "), expected&.inspect].compact.join(SPACE)
82
82
  end
83
83
 
84
84
  # The summary of the result.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expresenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Kato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-30 00:00:00.000000000 Z
11
+ date: 2021-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brutal