mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@a0b7d0d
This commit is contained in:
parent
a4fbc7e288
commit
22e2a6a999
66 changed files with 943 additions and 167 deletions
|
@ -170,4 +170,12 @@ describe :strftime_time, shared: true do
|
|||
time.strftime("%-k%p").should == "8AM"
|
||||
time.strftime("%-l%p").should == "8AM"
|
||||
end
|
||||
|
||||
it "should be able to show default Logger format" do
|
||||
default_logger_format = "%Y-%m-%dT%H:%M:%S.%6N "
|
||||
@new_time[2001, 2, 3, 4, 5, 6].strftime(default_logger_format).should == "2001-02-03T04:05:06.000000 "
|
||||
@new_time[2001, 12, 3, 4, 5, 6 + 1/10r].strftime(default_logger_format).should == "2001-12-03T04:05:06.100000 "
|
||||
@new_time[2001, 2, 13, 4, 5, 6 + 1/100r].strftime(default_logger_format).should == "2001-02-13T04:05:06.010000 "
|
||||
@new_time[2001, 2, 3, 14, 5, 6 + 1/1000r].strftime(default_logger_format).should == "2001-02-03T14:05:06.001000 "
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue