Permalink
Browse files

add rake task for running specs

  • Loading branch information...
1 parent fa3cf0a commit 5e6cc5bdaffd676227b796374577c47a7ef1327b @hone hone committed Mar 27, 2013
Showing with 16 additions and 3 deletions.
  1. +1 −0 Gemfile
  2. +3 −3 Gemfile.lock
  3. +12 −0 Rakefile
View
@@ -5,4 +5,5 @@ group :development do
gem "rspec-core"
gem "rspec-expectations"
gem "excon"
+ gem "rake"
end
View
@@ -1,14 +1,13 @@
GIT
remote: git://github.com/heroku/hatchet.git
- revision: d8ee7c3f5698f9eff6d8fb24c26647ef69e1f0b8
+ revision: b4272aed93ce37f97c61a73c5f858190ee445209
branch: master
specs:
hatchet (0.0.1)
activesupport
anvil-cli
excon
heroku-api
- rake
thor
GEM
@@ -32,7 +31,7 @@ GEM
rake (10.0.4)
rest-client (1.6.7)
mime-types (>= 1.16)
- rspec-core (2.12.2)
+ rspec-core (2.13.1)
rspec-expectations (2.12.1)
diff-lcs (~> 1.1.3)
thor (0.15.4)
@@ -43,5 +42,6 @@ PLATFORMS
DEPENDENCIES
excon
hatchet!
+ rake
rspec-core
rspec-expectations
View
@@ -344,3 +344,15 @@ task "libffi:install", :version do |t, args|
end
end
end
+
+begin
+ require 'rspec/core/rake_task'
+
+ desc "Run specs"
+ RSpec::Core::RakeTask.new(:spec) do |t|
+ t.rspec_opts = %w(-fs --color)
+ #t.ruby_opts = %w(-w)
+ end
+ task :default => :spec
+rescue LoadError => e
+end

0 comments on commit 5e6cc5b

Please sign in to comment.