From 592c5933cfef9b94f9e7fba2f1645bb910614bd9 Mon Sep 17 00:00:00 2001 From: Daniel Hadad Date: Mon, 28 Jun 2021 09:05:20 -0700 Subject: [PATCH] Updated spec_helper to conditionally load rspec legacy_formatters only for older versions of rspec_core. This was causing crashes upon spec fail. refer to https://github.com/Origen-SDK/origen_app_generators/issues/15 --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b6c2431e..aa281189 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -20,7 +20,7 @@ require "origen" -require "rspec/legacy_formatters" +require "rspec/legacy_formatters" if Gem::Version.new(RSpec::Core::Version::STRING) < Gem::Version.new('3.0.0') require "#{Origen.top}/spec/format/origen_formatter" require "byebug"