Rakefile in hackpad-cli-0.0.4 vs Rakefile in hackpad-cli-0.0.5
- old
+ new
@@ -1,12 +1,31 @@
+#!/usr/bin/env rake
+begin
+ require 'bundler/setup'
+rescue LoadError
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
+end
+require 'bundler/setup'
require "bundler/gem_tasks"
+require "rake/testtask"
+require "rspec/core/rake_task" # RSpec 2.0
+
+desc "launch rspec tests"
+task :spec do
+ RSpec::Core::RakeTask.new(:spec) do |t|
+ t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
+ t.pattern = 'spec/lib/**/*_spec.rb'
+ end
+end
+
+task :default => :spec