fix specs under 1.9.2 preview3

This commit is contained in:
Brian Lopez 2010-06-01 23:40:16 -07:00
parent 39c894a1bd
commit 82718e6dad
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -1,4 +1,5 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
require 'mysql2'