Skip to content
This repository
Browse code

Change heckle task to raise when a spec file is missing

  • Loading branch information...
commit 795ff79c5bddddcf9e2de11b39b1638f9364518f 1 parent 56b39f6
Dan Kubb authored April 01, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  tasks/metrics/heckle.rake
4  tasks/metrics/heckle.rake
@@ -110,7 +110,7 @@ begin
110 110
         spec_file = spec_prefix.join('class_methods').join(map.file_name(method, mod.name))
111 111
 
112 112
         unless spec_file.file?
113  
-          warn "No spec file #{spec_file} for #{mod}.#{method}"
  113
+          raise "No spec file #{spec_file} for #{mod}.#{method}"
114 114
           next
115 115
         end
116 116
 
@@ -125,7 +125,7 @@ begin
125 125
         spec_file = spec_prefix.join(map.file_name(method, mod.name))
126 126
 
127 127
         unless spec_file.file?
128  
-          warn "No spec file #{spec_file} for #{mod}##{method}"
  128
+          raise "No spec file #{spec_file} for #{mod}##{method}"
129 129
           next
130 130
         end
131 131
 

0 notes on commit 795ff79

Please sign in to comment.
Something went wrong with that request. Please try again.