lib/test_diff/storage.rb in test_diff-0.3.4 vs lib/test_diff/storage.rb in test_diff-0.4.0
- old
+ new
@@ -8,10 +8,10 @@
def initialize(folder = 'test_diff_coverage')
@folder = folder
end
def set(file, coverage_data)
- fail 'Data must be a Hash' unless coverage_data.is_a?(Hash)
+ raise 'Data must be a Hash' unless coverage_data.is_a?(Hash)
get_store(file).transaction do |store|
store.roots.each do |key|
store.delete(key)
end
coverage_data.keys.sort.each do |key|