Sha256: 27d730f4707691d5335efaf4c747dad17741a56347f5f084fb7004a543009cfb
Contents?: true
Size: 511 Bytes
Versions: 2
Compression:
Stored size: 511 Bytes
Contents
require 'knapsack' namespace :knapsack do task :rspec, [:rspec_args] do |_, 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
knapsack-1.2.1 | lib/tasks/knapsack_rspec.rake |
knapsack-1.2.0 | lib/tasks/knapsack_rspec.rake |