Sha256: dee2eafe766c69cbe018c90c24415697e99d4630e79c9cacb6db2a2dc7b16225

Contents?: true

Size: 485 Bytes

Versions: 6

Compression:

Stored size: 485 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}]

    exec(cmd)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
knapsack-1.1.0 lib/tasks/knapsack_rspec.rake
knapsack-1.0.4 lib/tasks/knapsack_rspec.rake
knapsack-1.0.3 lib/tasks/knapsack_rspec.rake
knapsack-1.0.2 lib/tasks/knapsack_rspec.rake
knapsack-1.0.1 lib/tasks/knapsack_rspec.rake
knapsack-1.0.0 lib/tasks/knapsack_rspec.rake