mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-10 22:49:26 +08:00
18 lines
473 B
Ruby
18 lines
473 B
Ruby
# require File.expand_path('../../../spec_helper', __FILE__)
|
|
# require File.expand_path('../fixtures/methods', __FILE__)
|
|
# require File.expand_path('../shared/asctime', __FILE__)
|
|
|
|
# describe "Time#ctime" do
|
|
# it_behaves_like(:time_asctime, :ctime)
|
|
# end
|
|
describe "Time#ctime" do
|
|
before do
|
|
@method = :ctime
|
|
end
|
|
|
|
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
|