mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
7 lines
192 B
Ruby
7 lines
192 B
Ruby
|
describe :time_asctime, shared: true do
|
||
|
it "returns a canonical string representation of time" do
|
||
|
t = Time.now
|
||
|
t.send(@method).should == t.strftime("%a %b %e %H:%M:%S %Y")
|
||
|
end
|
||
|
end
|