Skip to content

Commit 78bc656

Browse files
committed
Workaround logger require issues with concurrent-ruby 1.3.5 and older Rails versions
1 parent be1f629 commit 78bc656

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/spec/ruby/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def should_not_eval_as_nil(code, runtime = @runtime) # alias
163163
begin
164164
# NOTE: only if running with a `bundle exec` to better isolate
165165
if $LOAD_PATH.find { |path| path =~ /\/rails\-[\w\.]*\// }
166+
require 'logger' # Workaround for concurrent-ruby problems on older rails versions
166167
require 'rails/version' # use Rails::VERSION to detect current env
167168
require 'rails' # attempt to load rails - for "real life" testing
168169
end

0 commit comments

Comments
 (0)