This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 0b4dfacb Allow override of RSpec options
0b4dfacb is described below

commit 0b4dfacb46d0bcbe7f3efcc8290cac66a29a090a
Author: Sebb <[email protected]>
AuthorDate: Fri May 19 11:07:03 2023 +0100

    Allow override of RSpec options
---
 www/board/agenda/Rakefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/board/agenda/Rakefile b/www/board/agenda/Rakefile
index e11dab8f..d22e6946 100644
--- a/www/board/agenda/Rakefile
+++ b/www/board/agenda/Rakefile
@@ -10,7 +10,9 @@ $LOAD_PATH.unshift lib unless $LOAD_PATH.include? lib
 require 'whimsy/asf/config'
 
 require 'rspec/core/rake_task'
-RSpec::Core::RakeTask.new(:spec)
+raketask = RSpec::Core::RakeTask.new(:spec)
+rspec_opts = ENV['RSPEC_OPTS']
+raketask.rspec_opts = rspec_opts if rspec_opts
 task :default => :spec
 task :spec => 'test:setup'
 task :test => :spec

Reply via email to