summaryrefslogtreecommitdiff
path: root/spec/ruby/core/complex/rect_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/complex/rect_spec.rb')
-rw-r--r--spec/ruby/core/complex/rect_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/ruby/core/complex/rect_spec.rb b/spec/ruby/core/complex/rect_spec.rb
new file mode 100644
index 0000000000..72f2bf9930
--- /dev/null
+++ b/spec/ruby/core/complex/rect_spec.rb
@@ -0,0 +1,13 @@
+require_relative '../../spec_helper'
+
+describe "Complex#rect" do
+ it "is an alias of Complex#rectangular" do
+ Complex.instance_method(:rect).should == Complex.instance_method(:rectangular)
+ end
+end
+
+describe "Complex.rect" do
+ it "is an alias of Complex#rectangular" do
+ Complex.method(:rect).should == Complex.method(:rectangular)
+ end
+end