Permalink
Browse files

Use Bundler and RSpec rake tasks

  • Loading branch information...
1 parent 5c09e44 commit 2ab37f0b05fd39327c92578e8b168ed01e3345f0 @ezkl ezkl committed May 23, 2012
Showing with 6 additions and 21 deletions.
  1. +6 −21 Rakefile
View
@@ -1,21 +1,6 @@
-require "rspec/core/rake_task"
-
-$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
-require 'sax-machine'
-
-desc "Run all specs"
-RSpec::Core::RakeTask.new do |t|
- t.rspec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
-end
-
-task :default => [:spec]
-
-task :test do
- sh 'rspec spec'
-end
-
-task :install do
- rm_rf "*.gem"
- puts `gem build sax-machine.gemspec`
- puts `sudo gem install sax-machine-#{SAXMachine::VERSION}.gem`
-end
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec)
+task :test => :spec
+task :default => :test

0 comments on commit 2ab37f0

Please sign in to comment.