Skip to content

Commit 2ec7aff

Browse files
committed
fix broken specs on windows
1 parent 5a3b7b8 commit 2ec7aff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/mysql2/result_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178

179179
it "should return Time for a DATETIME value when within the supported range" do
180180
@test_result['date_time_test'].class.should eql(Time)
181-
@test_result['date_time_test'].strftime("%F %T").should eql('2010-04-04 11:44:00')
181+
@test_result['date_time_test'].strftime("%Y-%m-%d %H:%M:%S").should eql('2010-04-04 11:44:00')
182182
end
183183

184184
if 1.size == 4 # 32bit
@@ -230,17 +230,17 @@
230230

231231
it "should return Time for a TIMESTAMP value when within the supported range" do
232232
@test_result['timestamp_test'].class.should eql(Time)
233-
@test_result['timestamp_test'].strftime("%F %T").should eql('2010-04-04 11:44:00')
233+
@test_result['timestamp_test'].strftime("%Y-%m-%d %H:%M:%S").should eql('2010-04-04 11:44:00')
234234
end
235235

236236
it "should return Time for a TIME value" do
237237
@test_result['time_test'].class.should eql(Time)
238-
@test_result['time_test'].strftime("%F %T").should eql('2000-01-01 11:44:00')
238+
@test_result['time_test'].strftime("%Y-%m-%d %H:%M:%S").should eql('2000-01-01 11:44:00')
239239
end
240240

241241
it "should return Date for a DATE value" do
242242
@test_result['date_test'].class.should eql(Date)
243-
@test_result['date_test'].strftime("%F").should eql('2010-04-04')
243+
@test_result['date_test'].strftime("%Y-%m-%d").should eql('2010-04-04')
244244
end
245245

246246
it "should return String for an ENUM value" do

0 commit comments

Comments
 (0)