Commit a4460f42 authored by Gabriel Mazetto's avatar Gabriel Mazetto

Fix a few method signature checks

parent 44273597
......@@ -11,7 +11,7 @@ module SystemCheck
# @param [Array<BaseCheck>] checks classes of corresponding checks to be executed in the same order
# @param [BaseExecutor] executor_klass optionally specifiy a different executor class
def self.run(component, checks = [], executor_klass = SimpleExecutor)
unless executor_klass.is_a? BaseExecutor
unless executor_klass < BaseExecutor
raise ArgumentError, 'Invalid executor'
end
......
......@@ -17,7 +17,7 @@ module SystemCheck
#
# @param [BaseCheck] check class
def <<(check)
raise ArgumentError unless check.is_a? BaseCheck
raise ArgumentError unless check < BaseCheck
@checks << check
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment