Rakefile in unit-0.3.0 vs Rakefile in unit-0.4.0

- old
+ new

@@ -1,6 +1,18 @@ -task :default => :test -desc 'Run tests with bacon' -task :test => FileList['test/*_test.rb'] do |t| - sh "bacon -q -Ilib:test #{t.prerequisites.join(' ')}" +require 'rspec/core/rake_task' +task :default => :spec + +desc "Run specs" +task :spec => ["spec:no_dsl", "spec:dsl"] + +namespace :spec do + desc "Run specs without DSL" + RSpec::Core::RakeTask.new(:no_dsl) do |t| + t.rspec_opts = "-t ~dsl" + end + + desc "Run specs with DSL" + RSpec::Core::RakeTask.new(:dsl) do |t| + # Run all tests + end end