Commit f141eeae authored by Gabriel Mazetto's avatar Gabriel Mazetto

Fix a few method signature checks

parent d3cc6396
...@@ -11,7 +11,7 @@ module SystemCheck ...@@ -11,7 +11,7 @@ module SystemCheck
# @param [Array<BaseCheck>] checks classes of corresponding checks to be executed in the same order # @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 # @param [BaseExecutor] executor_klass optionally specifiy a different executor class
def self.run(component, checks = [], executor_klass = SimpleExecutor) def self.run(component, checks = [], executor_klass = SimpleExecutor)
unless executor_klass.is_a? BaseExecutor unless executor_klass < BaseExecutor
raise ArgumentError, 'Invalid executor' raise ArgumentError, 'Invalid executor'
end end
......
...@@ -17,7 +17,7 @@ module SystemCheck ...@@ -17,7 +17,7 @@ module SystemCheck
# #
# @param [BaseCheck] check class # @param [BaseCheck] check class
def <<(check) def <<(check)
raise ArgumentError unless check.is_a? BaseCheck raise ArgumentError unless check < BaseCheck
@checks << check @checks << check
end end
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