Skip to content

Commit

Permalink
Updated spec_helper to conditionally load rspec legacy_formatters only
Browse files Browse the repository at this point in the history
for older versions of rspec_core.

This was causing crashes upon spec fail.

refer to Origen-SDK/origen_app_generators#15
  • Loading branch information
redxeth committed Jun 28, 2021
1 parent 61e20cd commit 592c593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 592c593

Please sign in to comment.