use #fail instead of #raise to signal exceptions, as suggested by RuboCop

This commit is contained in:
Hauke Klement
2015-02-17 09:05:04 +01:00
parent b21a7ee8e8
commit c99b0e6256
6 changed files with 9 additions and 9 deletions

View File

@ -17,7 +17,7 @@ class Assessor
if options[:execution_environment].testing_framework?
@testing_framework_adapter = Kernel.const_get(options[:execution_environment].testing_framework).new
else
raise Error.new('No testing framework adapter set!')
fail(Error, 'No testing framework adapter set!')
end
end
end