Typo in lib/jobrnr/dsl/job_builder.rb
rfdonnelly opened this issue · comments
Error
lib/jobrnr/dsl/job_builder.rb:26:in `repeat': uninitialized constant Jobrnr::TypeError (NameError)
Did you mean? TypeError
Fix
diff --git a/lib/jobrnr/dsl/job_builder.rb b/lib/jobrnr/dsl/job_builder.rb
index 66f392c..acd306c 100644
--- a/lib/jobrnr/dsl/job_builder.rb
+++ b/lib/jobrnr/dsl/job_builder.rb
@@ -23,7 +23,7 @@ module Jobrnr
def repeat(times)
if !times.is_a?(Integer) || times < 0
- raise Jobrnr::TypeError, "'repeat' expects a positive Integer" \
+ raise Jobrnr::ArgumentError, "'repeat' expects a positive Integer" \
" but was given value of '#{times}' of type" \
" '#{times.class.name}' @ #{source}"
end