summaryrefslogtreecommitdiff
path: root/spec/ruby/library/matrix/imag_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/matrix/imag_spec.rb')
-rw-r--r--spec/ruby/library/matrix/imag_spec.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/ruby/library/matrix/imag_spec.rb b/spec/ruby/library/matrix/imag_spec.rb
index 41083879e4..9d6cc2e953 100644
--- a/spec/ruby/library/matrix/imag_spec.rb
+++ b/spec/ruby/library/matrix/imag_spec.rb
@@ -1,6 +1,8 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../shared/imaginary', __FILE__)
+require_relative '../../spec_helper'
+require 'matrix'
describe "Matrix#imag" do
- it_behaves_like(:matrix_imaginary, :imag)
+ it "is an alias of Matrix#imaginary" do
+ Matrix.instance_method(:imag).should == Matrix.instance_method(:imaginary)
+ end
end