Rakefile in imasquerade-0.2.4 vs Rakefile in imasquerade-0.3.0
- old
+ new
@@ -1,11 +1,11 @@
-require 'rake'
-require 'rake/testtask'
require 'bundler/gem_tasks'
-Rake::TestTask.new(:test) do |test|
- test.libs << 'lib' << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
-end
+begin
+ require 'rspec/core/rake_task'
-task :default => :test
+ RSpec::Core::RakeTask.new(:spec)
+
+ task :default => :spec
+rescue LoadError
+ # no rspec available
+end