require 'rspec/core/rake_task' require 'bundler/gem_tasks' # require 'rake/extensiontask' # spec = Gem::Specification.load('calc.gemspec') # Rake::ExtensionTask.new('calc', spec) 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 desc "Generate code coverage" RSpec::Core::RakeTask.new(:coverage) do |t| t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default. end