mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-13 09:40:32 +08:00
9 lines
272 B
Ruby
9 lines
272 B
Ruby
# require File.expand_path('../../../spec_helper', __FILE__)
|
|
# require File.expand_path('../fixtures/methods', __FILE__)
|
|
|
|
describe "Time#to_f" do
|
|
it "returns the float number of seconds + usecs since the epoch" do
|
|
Time.at(100, 100).to_f.should == 100.0001
|
|
end
|
|
end
|