lib/rake/funnel/tasks/nunit.rb in rake-funnel-0.18.0 vs lib/rake/funnel/tasks/nunit.rb in rake-funnel-0.19.0
- old
+ new
@@ -13,22 +13,23 @@
define(args, &task_block)
end
private
+
def setup_ivars(args)
@name = args.shift || :test
@nunit = 'nunit-console.exe'
@args = {}
@files = %w(build/specs/**/*.dll build/specs/**/*.exe)
end
- def define(args, &task_block)
+ def define(args, &task_block) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
desc "Test #{test_assemblies.all_or_default.join(', ')}" unless Rake.application.last_description
task(name, *args) do |_, task_args|
- task_block.call(*[self, task_args].slice(0, task_block.arity)) if task_block
+ yield(*[self, task_args].slice(0, task_block.arity)) if task_block
Rake::Funnel::Integration::TeamCity::NUnitPlugin.setup(nunit)
cmd = [
*Mono.invocation(nunit),