simple_approvals-rspec 3.1.2 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple_approvals/rspec/approvals.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bacb40985faf88373afeb0dc01b6fc86d8d3ac9aff24845363b6740c7712ea0
|
4
|
+
data.tar.gz: 64b1079ec825faa930afaa8efa7bda1f6df34e9da28379c67ef8564419a6bb9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b217da3fe2a656ecd0f6750789164036587726423138a6dc7b12f858880bb1f04d12468637335b8034acf2476be4c84316b67b2c24fac5ebd4a9f4dffa0349dd
|
7
|
+
data.tar.gz: 93faab2db5755afe9fa3e04c8d472a384baf988e153d1e72917df474f027fbade9efc7b2c3481489a02f95eee33de7bbb669b09d4987a595f9812431ae799f08
|
@@ -63,15 +63,15 @@ class Approvals
|
|
63
63
|
|
64
64
|
expected_content = load_expected_content(approved_path, options)
|
65
65
|
|
66
|
-
if
|
66
|
+
if expected_content.include?("\n") || received_content.include?("\n")
|
67
|
+
::RSpec::Expectations.fail_with message, expected_content, received_content
|
68
|
+
else
|
67
69
|
# work around a bug in rspec-support 3.12.0's differ
|
68
70
|
# where it shows nothing when both strings are single line
|
69
71
|
# https://github.com/rspec/rspec-support/blob/v3.12.0/lib/rspec/support/differ.rb#L16-L18
|
70
72
|
message << "expected: #{expected_content.inspect}\n"
|
71
73
|
message << "received: #{received_content.inspect}\n"
|
72
74
|
::RSpec::Expectations.fail_with message
|
73
|
-
else
|
74
|
-
::RSpec::Expectations.fail_with message, expected_content, received_content
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_approvals-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Alpert
|
@@ -130,14 +130,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
130
130
|
requirements:
|
131
131
|
- - "~>"
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: 3.
|
133
|
+
version: '3.2'
|
134
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
|
-
rubygems_version: 3.
|
140
|
+
rubygems_version: 3.4.10
|
141
141
|
signing_key:
|
142
142
|
specification_version: 4
|
143
143
|
summary: ''
|