use_cases 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/use_cases/rspec/matchers.rb +4 -4
- data/lib/use_cases/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86bb76e93659c9a0512a573bb45ea5c1a4c905bcbbf8df35c6144f687c4f75d0
|
4
|
+
data.tar.gz: b52e54fd5535dc623f1627f38afd6904448bbe01cd6a5c77570c456e15aa105e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f359f8ceddc2bc4de7379565e3e69ac0444f85d343e17d9b80d8fb7665db575f963a7dcd57df0e6be37e0b718e61c142e1661f07b917b580a6c9b192f16d58b6
|
7
|
+
data.tar.gz: d2085d518a685ea7d3edb1491cb629f691f33d8e9e637ddc3adf463b6f997263cf08b5bc8b307e960a2dc59abf2b8b3cb2a96c0c12d0cfe131fe9d89549d484e
|
@@ -5,7 +5,7 @@ require "rspec"
|
|
5
5
|
RSpec::Matchers.define(:be_failure_with_code) do |expected_code|
|
6
6
|
match do |test_subject|
|
7
7
|
expect(test_subject.failure?).to be true
|
8
|
-
expect(test_subject.failure.first).to
|
8
|
+
expect(test_subject.failure.first).to eql expected_code
|
9
9
|
end
|
10
10
|
|
11
11
|
failure_message do |test_subject|
|
@@ -20,7 +20,7 @@ end
|
|
20
20
|
RSpec::Matchers.define(:be_failure_with_payload) do |expected_result|
|
21
21
|
match do |test_subject|
|
22
22
|
expect(test_subject.failure?).to be true
|
23
|
-
expect(test_subject.failure.last).to
|
23
|
+
expect(test_subject.failure.last).to eql expected_result
|
24
24
|
end
|
25
25
|
|
26
26
|
failure_message do |test_subject|
|
@@ -35,7 +35,7 @@ end
|
|
35
35
|
RSpec::Matchers.define(:be_failure_with) do |*expected_failure|
|
36
36
|
match do |test_subject|
|
37
37
|
expect(test_subject.failure?).to be true
|
38
|
-
expect(test_subject.failure).to
|
38
|
+
expect(test_subject.failure).to eql expected_failure
|
39
39
|
end
|
40
40
|
|
41
41
|
failure_message do |test_subject|
|
@@ -50,7 +50,7 @@ end
|
|
50
50
|
RSpec::Matchers.define(:be_successful_with) do |expected_result|
|
51
51
|
match do |test_subject|
|
52
52
|
expect(test_subject.success?).to be true
|
53
|
-
expect(test_subject.success).to
|
53
|
+
expect(test_subject.success).to eql expected_result
|
54
54
|
end
|
55
55
|
|
56
56
|
failure_message do |test_subject|
|
data/lib/use_cases/version.rb
CHANGED