Attempt to force rspec to run in bundle controlled environment
authorPeter Donald <peter@realityforge.org>
Tue, 20 Nov 2018 02:40:27 +0000 (13:40 +1100)
committerPeter Donald <peter@realityforge.org>
Tue, 20 Nov 2018 02:40:27 +0000 (13:40 +1100)
rakelib/rspec.rake

index 4a86a62..cc23457 100644 (file)
@@ -36,6 +36,7 @@ RSpec::Core::RakeTask.new :spec => ['_reports', :compile] do |task|
   ENV['USE_FSC'] = 'no'
   files = FileList['spec/**/*_spec.rb']
   files = files.delete_if {|f| f =~ /^spec\/groovy\//} if RUBY_PLATFORM[/java/]
+  task.rspec_path = 'bundle exec rspec'
   task.rspec_files = files
   task.rspec_opts = %w{--order random:123 --format html --out _reports/specs.html --backtrace}
 end