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 +4 -4
- data/lib/expresenter.rb +1 -1
- data/lib/expresenter/common.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3d9ca739d1a34b11ea226e77c5c3e5110ca38fb8d3f3d16b9497c69233d4447
|
4
|
+
data.tar.gz: a1678358865fb1a8441c9e0837bc3fe1ff683edb9dc9ffa4b4f4d44e56a27696
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/lib/expresenter/common.rb
CHANGED
@@ -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 [
|
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.
|
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-
|
11
|
+
date: 2021-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: brutal
|