From 9894497b91b0fe20ecbea3d30b82f659f3a136b3 Mon Sep 17 00:00:00 2001 From: Sebastian Fiedlschuster Date: Thu, 8 May 2014 02:21:35 +0200 Subject: [PATCH] rails4: trying to fix the Rakefile. For the moment, 'rake spec' returns 0 for failing specs. Therefore, travis shows green even when specs are failing. This has to be fixed. https://github.com/rspec/rspec-rails/issues/1016 --- Rakefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) mode change 100644 => 100755 Rakefile diff --git a/Rakefile b/Rakefile old mode 100644 new mode 100755 index 33af59b40..6bfdea78e --- a/Rakefile +++ b/Rakefile @@ -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 \ No newline at end of file