Rakefile in kan-0.1.0 vs Rakefile in kan-0.2.0
- old
+ new
@@ -1,10 +1,12 @@
require "bundler/gem_tasks"
require "rake/testtask"
-Rake::TestTask.new(:test) do |t|
- t.libs << "test"
- t.libs << "lib"
- t.test_files = FileList["test/**/*_test.rb"]
-end
+begin
+ require 'rspec/core/rake_task'
-task :default => :test
+ RSpec::Core::RakeTask.new(:spec)
+
+ task default: :spec
+rescue LoadError
+ # no rspec available
+end