summaryrefslogtreecommitdiff
path: root/spec/ruby/core/float/floor_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/float/floor_spec.rb')
-rw-r--r--spec/ruby/core/float/floor_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/ruby/core/float/floor_spec.rb b/spec/ruby/core/float/floor_spec.rb
index 046216d36d..8b492ef473 100644
--- a/spec/ruby/core/float/floor_spec.rb
+++ b/spec/ruby/core/float/floor_spec.rb
@@ -1,6 +1,11 @@
require_relative '../../spec_helper'
+require_relative '../integer/shared/integer_floor_precision'
describe "Float#floor" do
+ context "with precision" do
+ it_behaves_like :integer_floor_precision, :Float
+ end
+
it "returns the largest Integer less than or equal to self" do
-1.2.floor.should eql( -2)
-1.0.floor.should eql( -1)