Sha256: 6f711608fa416bc0817e13c7427337691a0fe43f8eaf862eaec3fe1de3c4f534

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

require 'knapsack'

namespace :knapsack do
  task :rspec, [:rspec_args] do |t, args|
    allocator = Knapsack::AllocatorBuilder.new(Knapsack::Adapters::RspecAdapter).allocator

    puts
    puts 'Report specs:'
    puts allocator.report_node_tests
    puts
    puts 'Leftover specs:'
    puts allocator.leftover_node_tests
    puts

    cmd = %Q[bundle exec rspec #{args[:rspec_args]} --default-path #{allocator.test_dir} -- #{allocator.stringify_node_tests}]

    system(cmd)
    exit($?.exitstatus)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
knapsack-1.1.1 lib/tasks/knapsack_rspec.rake