Skip to content

Commit

Permalink
Make rake work again
Browse files Browse the repository at this point in the history
rspec/core/rake_task includes rake. Requiring rake when already inside a
rake will cause all kinds of errors.
  • Loading branch information
Mange committed Oct 23, 2013
1 parent 52fb8e6 commit 354bffd
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions Rakefile
Expand Up @@ -3,20 +3,9 @@ require 'bundler/setup'

Bundler::GemHelper.install_tasks

begin
require 'rspec'
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end

require 'rspec/core/rake_task'

desc "Run specs"
RSpec::Core::RakeTask.new('spec') do |t|
t.pattern = 'spec/**/*_spec.rb'
t.rspec_opts = ["-c"]
task :spec do
sh "bundle exec rspec -f progress"
end

desc "Default: Run specs"
Expand Down

0 comments on commit 354bffd

Please sign in to comment.