Sha256: 4b6d85311f0a15a4a11a13f2b31f00c3c2f0382a2685c13af1ba11d3c9944100
Contents?: true
Size: 449 Bytes
Versions: 2
Compression:
Stored size: 449 Bytes
Contents
require "bundler/gem_tasks" require "rspec/core/rake_task" task :default => ["specs:all"] namespace :specs do desc "Run all specs" RSpec::Core::RakeTask.new(:all) # make a task for each *_spec.rb in spec/ FileList["spec/*_spec.rb"].each do |path| ctx = File.basename(path, "*.rb").split("_").first desc "Run the #{ctx} spec" RSpec::Core::RakeTask.new(ctx) do |t| t.pattern = "spec/#{ctx}_spec.rb" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
albacore-1.0.0 | Rakefile |
albacore-1.0.0.rc.3 | Rakefile |