summaryrefslogtreecommitdiff
path: root/spec/ruby/library/matrix/shared/determinant.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/matrix/shared/determinant.rb')
-rw-r--r--spec/ruby/library/matrix/shared/determinant.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/matrix/shared/determinant.rb b/spec/ruby/library/matrix/shared/determinant.rb
index 9e0528c24b..b7c86393ba 100644
--- a/spec/ruby/library/matrix/shared/determinant.rb
+++ b/spec/ruby/library/matrix/shared/determinant.rb
@@ -29,10 +29,10 @@ describe :determinant, shared: true do
it "raises an error for rectangular matrices" do
-> {
Matrix[[1], [2], [3]].send(@method)
- }.should raise_error(Matrix::ErrDimensionMismatch)
+ }.should.raise(Matrix::ErrDimensionMismatch)
-> {
Matrix.empty(3,0).send(@method)
- }.should raise_error(Matrix::ErrDimensionMismatch)
+ }.should.raise(Matrix::ErrDimensionMismatch)
end
end