File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 178
178
179
179
it "should return Time for a DATETIME value when within the supported range" do
180
180
@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' )
182
182
end
183
183
184
184
if 1 . size == 4 # 32bit
230
230
231
231
it "should return Time for a TIMESTAMP value when within the supported range" do
232
232
@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' )
234
234
end
235
235
236
236
it "should return Time for a TIME value" do
237
237
@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' )
239
239
end
240
240
241
241
it "should return Date for a DATE value" do
242
242
@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' )
244
244
end
245
245
246
246
it "should return String for an ENUM value" do
You can’t perform that action at this time.
0 commit comments