lib/tasks/knapsack_cucumber.rake in knapsack-1.2.1 vs lib/tasks/knapsack_cucumber.rake in knapsack-1.3.0

- old
+ new

@@ -1,20 +1,7 @@ require 'knapsack' namespace :knapsack do task :cucumber, [:cucumber_args] do |_, args| - allocator = Knapsack::AllocatorBuilder.new(Knapsack::Adapters::CucumberAdapter).allocator - - puts - puts 'Report features:' - puts allocator.report_node_tests - puts - puts 'Leftover features:' - puts allocator.leftover_node_tests - puts - - cmd = %Q[bundle exec cucumber #{args[:cucumber_args]} -- #{allocator.stringify_node_tests}] - - system(cmd) - exit($?.exitstatus) + Knapsack::Runners::CucumberRunner.run(args[:cucumber_args]) end end