Use Kernel#abort for exception that cannot be triggered by bad input

This commit is contained in:
Markus Schirp 2013-07-03 00:18:20 +02:00
parent b36348a1b8
commit 6658261686

View file

@ -18,7 +18,7 @@ module Mutant
output = Diff::LCS::Hunk.new(old, new, diffs.first, max_length, 0).diff(:unified)
output << "\n"
else
raise 'Mutation resulted in more than one diff, should not happen!'
abort 'Mutation resulted in more than one diff, should not happen! PLS report a bug!'
end
end
memoize :diff