diff --git a/spec/mysql2/result_spec.rb b/spec/mysql2/result_spec.rb index 9224446..ff2dcf9 100644 --- a/spec/mysql2/result_spec.rb +++ b/spec/mysql2/result_spec.rb @@ -176,7 +176,7 @@ describe Mysql2::Result do it "should return Time for a TIME value" do @test_result['time_test'].class.should eql(Time) - if RUBY_VERSION =~ /1.9.2/ + if RUBY_VERSION >= "1.9.2" @test_result['time_test'].strftime("%F %T").should eql('0000-01-01 11:44:00') else @test_result['time_test'].strftime("%F %T").should eql('2000-01-01 11:44:00')