mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-12 10:36:58 +08:00
11 lines
304 B
Ruby
11 lines
304 B
Ruby
# require File.expand_path('../../../spec_helper', __FILE__)
|
|
# require File.expand_path('../fixtures/methods', __FILE__)
|
|
|
|
describe "Time#yday" do
|
|
it "returns an integer representing the day of the year, 1..366" do
|
|
with_timezone("UTC") do
|
|
Time.at(9999999).yday.should == 116
|
|
end
|
|
end
|
|
end
|