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.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/library/matrix/shared/determinant.rb b/spec/ruby/library/matrix/shared/determinant.rb
index 47a58c62a6..b7c86393ba 100644
--- a/spec/ruby/library/matrix/shared/determinant.rb
+++ b/spec/ruby/library/matrix/shared/determinant.rb
@@ -27,12 +27,12 @@ describe :determinant, shared: true do
end
it "raises an error for rectangular matrices" do
- lambda {
+ -> {
Matrix[[1], [2], [3]].send(@method)
- }.should raise_error(Matrix::ErrDimensionMismatch)
+ }.should.raise(Matrix::ErrDimensionMismatch)
- lambda {
+ -> {
Matrix.empty(3,0).send(@method)
- }.should raise_error(Matrix::ErrDimensionMismatch)
+ }.should.raise(Matrix::ErrDimensionMismatch)
end
end