diff options
Diffstat (limited to 'spec/ruby/core/time/to_f_spec.rb')
-rw-r--r-- | spec/ruby/core/time/to_f_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/ruby/core/time/to_f_spec.rb b/spec/ruby/core/time/to_f_spec.rb new file mode 100644 index 0000000000..d737848b4b --- /dev/null +++ b/spec/ruby/core/time/to_f_spec.rb @@ -0,0 +1,7 @@ +require File.expand_path('../../../spec_helper', __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 |