summaryrefslogtreecommitdiff
path: root/spec/ruby/core/float/ceil_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/float/ceil_spec.rb')
-rw-r--r--spec/ruby/core/float/ceil_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/ruby/core/float/ceil_spec.rb b/spec/ruby/core/float/ceil_spec.rb
index 7fc18d304c..75f5610292 100644
--- a/spec/ruby/core/float/ceil_spec.rb
+++ b/spec/ruby/core/float/ceil_spec.rb
@@ -1,6 +1,11 @@
require_relative '../../spec_helper'
+require_relative '../integer/shared/integer_ceil_precision'
describe "Float#ceil" do
+ context "with precision" do
+ it_behaves_like :integer_ceil_precision, :Float
+ end
+
it "returns the smallest Integer greater than or equal to self" do
-1.2.ceil.should eql( -1)
-1.0.ceil.should eql( -1)