Sha256: 94cc719667d732d0efdcbf65e4028fa3d7d79c1fd3d2a89f9b2a0926371f79be
Contents?: true
Size: 358 Bytes
Versions: 10
Compression:
Stored size: 358 Bytes
Contents
require 'rspec/core/rake_task' spec_tasks = Dir['spec/*/'].map { |d| File.basename(d) } spec_tasks.each do |folder| RSpec::Core::RakeTask.new("spec:#{folder}") do |t| t.pattern = "./spec/#{folder}/**/*_spec.rb" t.rspec_opts = %w(-fs --color) end end desc "Run complete application spec suite" task 'spec' => spec_tasks.map { |f| "spec:#{f}" }
Version data entries
10 entries across 10 versions & 2 rubygems