Files
RubyMotion/test/TestTime/spec/rubyspec/yday_spec.rb

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