summaryrefslogtreecommitdiff
path: root/spec/ruby/core/integer/ceil_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/integer/ceil_spec.rb')
-rw-r--r--spec/ruby/core/integer/ceil_spec.rb13
1 files changed, 10 insertions, 3 deletions
diff --git a/spec/ruby/core/integer/ceil_spec.rb b/spec/ruby/core/integer/ceil_spec.rb
index 7a49ede0df..395be58fbd 100644
--- a/spec/ruby/core/integer/ceil_spec.rb
+++ b/spec/ruby/core/integer/ceil_spec.rb
@@ -1,6 +1,13 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../shared/to_i', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'shared/to_i'
+require_relative 'shared/integer_rounding'
+require_relative 'shared/integer_ceil_precision'
describe "Integer#ceil" do
- it_behaves_like(:integer_to_i, :ceil)
+ it_behaves_like :integer_to_i, :ceil
+ it_behaves_like :integer_rounding_positive_precision, :ceil
+
+ context "with precision" do
+ it_behaves_like :integer_ceil_precision, :Integer
+ end
end