Skip to content

Commit

Permalink
rails4: trying to fix the Rakefile.
Browse files Browse the repository at this point in the history
For the moment, 'rake spec' returns 0 for failing specs. Therefore, travis shows green even when specs are failing. This has to be fixed.

rspec/rspec-rails#1016
  • Loading branch information
fiedl committed May 8, 2014
1 parent c0adccb commit 9894497
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions Rakefile
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@
require File.expand_path('../config/application', __FILE__)
require 'rspec/core/rake_task'

task :default => :spec

Wingolfsplattform::Application.load_tasks

Rake::Task[ :spec ].clear

# The task `rake spec` is defined by the rspec-rails gem.
# We have to customize it here in order to include the your_platform engine.
#
# For more information on how to customize the task, see:
# * https://github.com/rspec/rspec-rails#customizing-rake-tasks
# * https://www.relishapp.com/rspec/rspec-core/docs/command-line/rake-task
#
Rake::Task[ :spec ].clear
RSpec::Core::RakeTask.new( :spec ) do |t|
t.pattern = "{./spec/**/*_spec.rb,./vendor/engines/**/spec/**/*_spec.rb}"
t.fail_on_error = true
end




# The default rake task, i.e. when running just `rake`, is `rake spec`.
#
task :default => :spec

0 comments on commit 9894497

Please sign in to comment.