Rakefile in applix-0.2.1 vs Rakefile in applix-0.2.2
- old
+ new
@@ -31,31 +31,37 @@
TXT
gem.email = "dirk@sebrink.de"
gem.homepage = "http://github.com/crux/applix"
gem.authors = ["dirk luesebrink"]
- gem.add_development_dependency "rspec"
+
+ gem.add_development_dependency "rspec", ">= 2.3.0"
+ gem.add_development_dependency "rcov"
+ gem.add_development_dependency "ZenTest", ">= 4.4.2"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
-require 'spec/rake/spectask'
-Spec::Rake::SpecTask.new(:spec) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.spec_files = FileList['spec/**/*_spec.rb']
-end
-Spec::Rake::SpecTask.new(:rcov) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.pattern = 'spec/**/*_spec.rb'
- spec.rcov = true
+require "rspec/core/rake_task"
+namespace :test do
+ desc "Run all specs."
+ RSpec::Core::RakeTask.new(:spec) do |t|
+ t.pattern = 'spec/**/*_spec.rb'
+ t.verbose = false
+ end
+
+ RSpec::Core::RakeTask.new(:coverage) do |t|
+ t.rcov = true
+ t.rcov_opts = %q[--exclude "spec"]
+ t.verbose = true
+ end
end
-task :spec => :check_dependencies
-
-task :default => :spec
+task :default => :check_dependencies
+task :spec => 'test:spec'
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION')
version = File.read('VERSION')