Skip to content

Commit 8b796dc

Browse files
Making tests work with capitalization of Ruby
1 parent 119f370 commit 8b796dc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spec/mongo/client_construction_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@
960960

961961
let(:platform_string) do
962962
[
963-
"JRuby #{JRUBY_VERSION}",
963+
"jruby #{JRUBY_VERSION}",
964964
"like Ruby #{RUBY_VERSION}",
965965
RUBY_PLATFORM,
966966
"JVM #{java.lang.System.get_property('java.version')}",

spec/support/shared/app_metadata.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def target_arch
113113
it 'adds empty strings' do
114114
document[:client][:driver][:name].should == 'mongo-ruby-driver|'
115115
document[:client][:driver][:version].should == "#{Mongo::VERSION}|"
116-
document[:client][:platform].should =~ /\AJ?Ruby[^|]+\|\z/
116+
document[:client][:platform].should =~ /\Aj?[Rr]uby[^|]+\|\z/
117117
end
118118
end
119119

@@ -125,7 +125,7 @@ def target_arch
125125
it 'adds the fields' do
126126
document[:client][:driver][:name].should == 'mongo-ruby-driver|Mongoid'
127127
document[:client][:driver][:version].should == "#{Mongo::VERSION}|"
128-
document[:client][:platform].should =~ /\AJ?Ruby[^|]+\|\z/
128+
document[:client][:platform].should =~ /\Aj?[Rr]uby[^|]+\|\z/
129129
end
130130
end
131131

@@ -137,7 +137,7 @@ def target_arch
137137
it 'adds the fields' do
138138
document[:client][:driver][:name].should == 'mongo-ruby-driver|Mongoid'
139139
document[:client][:driver][:version].should == "#{Mongo::VERSION}|7.1.2"
140-
document[:client][:platform].should =~ /\AJ?Ruby[^|]+\|OS9000\z/
140+
document[:client][:platform].should =~ /\Aj?[Rr]uby[^|]+\|OS9000\z/
141141
end
142142
end
143143
end
@@ -156,7 +156,7 @@ def target_arch
156156
it 'adds the fields' do
157157
document[:client][:driver][:name].should == 'mongo-ruby-driver|Mongoid|'
158158
document[:client][:driver][:version].should == "#{Mongo::VERSION}|42|4.0"
159-
document[:client][:platform].should =~ /\AJ?Ruby[^|]+\|\|OS9000\z/
159+
document[:client][:platform].should =~ /\Aj?[Rr]uby[^|]+\|\|OS9000\z/
160160
end
161161
end
162162

@@ -171,7 +171,7 @@ def target_arch
171171
it 'adds the fields' do
172172
document[:client][:driver][:name].should == 'mongo-ruby-driver|Mongoid|Rails'
173173
document[:client][:driver][:version].should == "#{Mongo::VERSION}|7.1.2|6.0.3"
174-
document[:client][:platform].should =~ /\AJ?Ruby[^|]+\|\|\z/
174+
document[:client][:platform].should =~ /\Aj?[Rr]uby[^|]+\|\|\z/
175175
end
176176
end
177177
end

0 commit comments

Comments
 (0)