diff --git a/spec/mongo/server/app_metadata_shared.rb b/spec/mongo/server/app_metadata_shared.rb index 3e799d04e7..c19898ab03 100644 --- a/spec/mongo/server/app_metadata_shared.rb +++ b/spec/mongo/server/app_metadata_shared.rb @@ -10,7 +10,7 @@ it 'includes operating system information' do document[:client][:os][:type].should == 'linux' - if BSON::Environment.jruby? + if BSON::Environment.jruby? || RUBY_VERSION >= '3.0' document[:client][:os][:name].should == 'linux' else document[:client][:os][:name].should == 'linux-gnu'