assert_same 0.7.0 → 0.7.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.
- data/assert_same.gemspec +1 -1
- data/lib/assert_same.rb +1 -1
- metadata +1 -1
data/assert_same.gemspec
CHANGED
data/lib/assert_same.rb
CHANGED
@@ -69,7 +69,7 @@ test_unit_module.module_eval do
|
|
69
69
|
#Hash[filename][line_number] = offset
|
70
70
|
#For each line in the original file we store its offset (+N or -N lines)
|
71
71
|
#relative to the actual file
|
72
|
-
|
72
|
+
class_variable_set(:@@file_offsets, Hash.new { |hash, key| hash[key] = {} })
|
73
73
|
|
74
74
|
# assert_same: assert which checks that two strings (expected and actual) are same
|
75
75
|
# and which can "magically" replace expected value with the actual in case
|