simple_approvals-rspec 3.1.2 → 3.1.3

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: f71df43a87b07fe15b71e6cc0c24c3482c2aff226ff36714be8a988d919edfd2
4
- data.tar.gz: 3cfe824a91b39e426f1e101616a558c787f4104e24e8117b1707112e5f1a923c
3
+ metadata.gz: 58062f9d2760edfd82719892ff5cb7b859ddee062d60fe169269721f21fb12d8
4
+ data.tar.gz: 0e0ed4b8ccd440ffb9f829e1d90b9fbe3ef52fbca000b5b55eb5a152c354fa05
5
5
  SHA512:
6
- metadata.gz: 25605c30b71b93bab1ededdc8ade9f8fbfefaa64c513eee4d0972792687fb399fe68cbb3287f76602bbe6b8146ac84af08be0fc11f2cd02828d87ac18a069359
7
- data.tar.gz: 817c7d0811dfeea3e111ed9d99dd45149bb41ba72305666dff71c26d05d31c3f0a7e52f8d3eaa5cede99154b670b470ea44d12670bc36daca903e1678b24689d
6
+ metadata.gz: 8b1cd64285868af7604dbe14e5bbfc777987c2212617cbaa4329df897b46d77f716e4b8f0a3d77ecdcd540a4f72b29f5b6b2157f39afea1311fe620bb2c90ea7
7
+ data.tar.gz: 4f7547e83ae43ff9b8af4cad2494481358d807b96eb7a7812fd9698da983f69bffac43687a51e845889d7e041f396bbd3fe60295eeb71ce375abbf4ab78f32ed
@@ -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")
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.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Alpert