spec fix for ruby 1.9.2+
This commit is contained in:
parent
bd3c39f819
commit
ef37f7ef76
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user