summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/rational/plus_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/core/rational/plus_spec.rb')
-rw-r--r--spec/rubyspec/core/rational/plus_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/rubyspec/core/rational/plus_spec.rb b/spec/rubyspec/core/rational/plus_spec.rb
new file mode 100644
index 0000000000..b82c44bbad
--- /dev/null
+++ b/spec/rubyspec/core/rational/plus_spec.rb
@@ -0,0 +1,16 @@
+require File.expand_path('../../../shared/rational/plus', __FILE__)
+
+describe "Rational#+" do
+ it_behaves_like(:rational_plus, :+)
+end
+
+describe "Rational#+ with a Rational" do
+ it_behaves_like(:rational_plus_rat, :+)
+end
+describe "Rational#+ with a Float" do
+ it_behaves_like(:rational_plus_float, :+)
+end
+
+describe "Rational#+ with an Integer" do
+ it_behaves_like(:rational_plus_int, :+)
+end