simple_approvals-rspec 3.1.3 → 3.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58062f9d2760edfd82719892ff5cb7b859ddee062d60fe169269721f21fb12d8
4
- data.tar.gz: 0e0ed4b8ccd440ffb9f829e1d90b9fbe3ef52fbca000b5b55eb5a152c354fa05
3
+ metadata.gz: 42d9ce7b7a184209580b32a1d649adad0375032edaf696e014fdfe5c21a48410
4
+ data.tar.gz: 076b822c022e69016c4d7e1af509d7deb1c610eb67a58433cf6fa9997c0c372b
5
5
  SHA512:
6
- metadata.gz: 8b1cd64285868af7604dbe14e5bbfc777987c2212617cbaa4329df897b46d77f716e4b8f0a3d77ecdcd540a4f72b29f5b6b2157f39afea1311fe620bb2c90ea7
7
- data.tar.gz: 4f7547e83ae43ff9b8af4cad2494481358d807b96eb7a7812fd9698da983f69bffac43687a51e845889d7e041f396bbd3fe60295eeb71ce375abbf4ab78f32ed
6
+ metadata.gz: e004a08fa68c812213dac6593931f771cd16a1762956845696d2f4e21b19dac769a34a4aed4d342b63b34c9cbae4e77ba16b288351197a3a9c15dca5c54922d5
7
+ data.tar.gz: 5471acf5d63b7d9906870891a87564825b6eb9895511c77ddec612acfb01c2c2955845a7123628a8a3059aa6f0d199c568e0a7ff986dc7104b4c8460f634da37
@@ -63,15 +63,15 @@ class Approvals
63
63
 
64
64
  expected_content = load_expected_content(approved_path, options)
65
65
 
66
- if expected_content.include?("\n") || received_content.include?("\n")
67
- ::RSpec::Expectations.fail_with message, expected_content, received_content
68
- else
66
+ if !expected_content.include?("\n") || !received_content.include?("\n")
69
67
  # work around a bug in rspec-support 3.12.0's differ
70
68
  # where it shows nothing when both strings are single line
71
69
  # https://github.com/rspec/rspec-support/blob/v3.12.0/lib/rspec/support/differ.rb#L16-L18
72
70
  message << "expected: #{expected_content.inspect}\n"
73
71
  message << "received: #{received_content.inspect}\n"
74
72
  ::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.1.3
4
+ version: 3.2.1
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.1.0
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.3.7
140
+ rubygems_version: 3.4.10
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: ''