fix specs under 1.9.2 preview3
This commit is contained in:
parent
39c894a1bd
commit
82718e6dad
@ -176,7 +176,11 @@ 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)
|
||||||
@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
|
end
|
||||||
|
|
||||||
it "should return Date for a DATE value" do
|
it "should return Date for a DATE value" do
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..')
|
||||||
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
|
||||||
|
|
||||||
require 'mysql2'
|
require 'mysql2'
|
||||||
|
Loading…
Reference in New Issue
Block a user