summaryrefslogtreecommitdiff
path: root/spec/ruby/core/complex/imag_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/complex/imag_spec.rb')
-rw-r--r--spec/ruby/core/complex/imag_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/ruby/core/complex/imag_spec.rb b/spec/ruby/core/complex/imag_spec.rb
index 6aa8803f5d..225f168e78 100644
--- a/spec/ruby/core/complex/imag_spec.rb
+++ b/spec/ruby/core/complex/imag_spec.rb
@@ -1,5 +1,7 @@
-require File.expand_path('../../../shared/complex/image', __FILE__)
+require_relative '../../spec_helper'
describe "Complex#imag" do
- it_behaves_like(:complex_image, :imag)
+ it "is an alias of Complex#imaginary" do
+ Complex.instance_method(:imag).should == Complex.instance_method(:imaginary)
+ end
end