spec fix for ruby 1.9.2+

This commit is contained in:
Brian Lopez 2010-06-13 14:50:02 -07:00
parent bd3c39f819
commit ef37f7ef76

View File

@ -176,7 +176,7 @@ describe Mysql2::Result do
it "should return Time for a TIME value" do it "should return Time for a TIME value" do
@test_result['time_test'].class.should eql(Time) @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') @test_result['time_test'].strftime("%F %T").should eql('0000-01-01 11:44:00')
else else
@test_result['time_test'].strftime("%F %T").should eql('2000-01-01 11:44:00') @test_result['time_test'].strftime("%F %T").should eql('2000-01-01 11:44:00')