Rakefile in prayer_times-0.1.2 vs Rakefile in prayer_times-0.1.3
- old
+ new
@@ -1,11 +1,10 @@
-require "bundler/gem_tasks"
-require 'rake/testtask'
-
-Rake::TestTask.new do |t|
- t.libs << 'lib/prayer_times'
- t.test_files = FileList['test/lib/prayer_times/*_test.rb']
- t.verbose = true
+require 'rspec/core/rake_task'
+require 'bundler/gem_tasks'
+
+# Default directory to look in is `/specs`
+# Run with `rake spec`
+RSpec::Core::RakeTask.new(:spec) do |task|
+ task.rspec_opts = ['--color', '--format', 'doc']
end
-
-task :default => :test
+task :default => :spec