Rakefile in calc-nik-0.0.2 vs Rakefile in calc-nik-0.0.3

- old
+ new

@@ -1,9 +1,15 @@ -#!/usr/bin/env rake -require "bundler/gem_tasks" -require 'rake/testtask' -Rake::TestTask.new do |t| - t.libs << 'lib/calc' - t.test_files = FileList['spec/*_spec.rb'] - t.verbose = true +require 'rspec/core/rake_task' + +desc 'Default: run specs.' +task :default => :spec + +desc "Run specs" +RSpec::Core::RakeTask.new do |t| + t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default. + # Put spec opts in a file named .rspec in root end -task :default => :test \ No newline at end of file + +desc "Generate code coverage" +RSpec::Core::RakeTask.new(:coverage) do |t| + t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default. +end