assert_difference 0.4.1 → 0.4.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.
- data/lib/assert_difference.rb +2 -2
- metadata +1 -1
data/lib/assert_difference.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# Copyright © 2010, 2011, 2012 José Pablo Fernández
|
3
3
|
|
4
4
|
module AssertDifference
|
5
|
-
VERSION = "0.4.
|
5
|
+
VERSION = "0.4.2" unless defined?(::AssertDifference::VERSION)
|
6
6
|
|
7
7
|
# Test numeric difference between the return value of an expression as a result of what is evaluated
|
8
8
|
# in the yielded block.
|
@@ -88,7 +88,7 @@ module AssertDifference
|
|
88
88
|
end
|
89
89
|
|
90
90
|
if error_messages.any?
|
91
|
-
fail error_messages.join(
|
91
|
+
fail error_messages.join(error_messages.any? { |m| m.include? "\n" } ? "\n\n" : ". ").strip
|
92
92
|
end
|
93
93
|
|
94
94
|
return result
|