File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11require_relative '../../spec_helper'
22
33describe "Time#asctime" do
4- it "is an alias of Time#ctime" do
5- Time . instance_method ( :asctime ) . should == Time . instance_method ( :ctime )
4+ it "returns a canonical string representation of time" do
5+ t = Time . now
6+ t . asctime . should == t . strftime ( "%a %b %e %H:%M:%S %Y" )
67 end
78end
Original file line number Diff line number Diff line change 11require_relative '../../spec_helper'
22
33describe "Time#ctime" do
4- it "returns a canonical string representation of time" do
5- t = Time . now
6- t . ctime . should == t . strftime ( "%a %b %e %H:%M:%S %Y" )
4+ it "is an alias of Time#asctime" do
5+ Time . instance_method ( :ctime ) . should == Time . instance_method ( :asctime )
76 end
87end
Original file line number Diff line number Diff line change 22require 'date'
33
44describe "Date#asctime" do
5- it "needs to be reviewed for spec completeness"
5+ it "returns a canonical string representation of date" do
6+ d = Date . today
7+ d . asctime . should == d . strftime ( "%a %b %e %H:%M:%S %Y" )
8+ end
69end
You can’t perform that action at this time.
0 commit comments