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.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/ruby/core/complex/rect_spec.rb b/spec/ruby/core/complex/rect_spec.rb
index cf2ff9e83b..72f2bf9930 100644
--- a/spec/ruby/core/complex/rect_spec.rb
+++ b/spec/ruby/core/complex/rect_spec.rb
@@ -1,9 +1,13 @@
-require File.expand_path('../../../shared/complex/rect', __FILE__)
+require_relative '../../spec_helper'
describe "Complex#rect" do
- it_behaves_like(:complex_rect, :rect)
+ it "is an alias of Complex#rectangular" do
+ Complex.instance_method(:rect).should == Complex.instance_method(:rectangular)
+ end
end
describe "Complex.rect" do
- it_behaves_like(:complex_rect_class, :rect)
+ it "is an alias of Complex#rectangular" do
+ Complex.method(:rect).should == Complex.method(:rectangular)
+ end
end