Skip to content

Commit 0dddb50

Browse files
committed
Use >= for Ruby version comparison as is done by everyone else
1 parent 624650a commit 0dddb50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/mongoid/errors/mongoid_error_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
let(:options) { {} }
1010

1111
before do
12-
if RUBY_VERSION.start_with?('3.', '2.7')
12+
if RUBY_VERSION >= '2.7'
1313
{"message_title" => "message", "summary_title" => "summary", "resolution_title" => "resolution"}.each do |key, name|
1414
expect(::I18n).to receive(:translate).with("mongoid.errors.messages.#{key}", **{}).and_return(name)
1515
end

0 commit comments

Comments
 (0)