assert_same 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- 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
|