summaryrefslogtreecommitdiff
path: root/spec/ruby/library/matrix/empty_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/matrix/empty_spec.rb')
-rw-r--r--spec/ruby/library/matrix/empty_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/library/matrix/empty_spec.rb b/spec/ruby/library/matrix/empty_spec.rb
index ce23d926d6..5f294711db 100644
--- a/spec/ruby/library/matrix/empty_spec.rb
+++ b/spec/ruby/library/matrix/empty_spec.rb
@@ -15,7 +15,7 @@ describe "Matrix#empty?" do
end
it "doesn't accept any parameter" do
- lambda{
+ ->{
Matrix[ [1, 2] ].empty?(42)
}.should raise_error(ArgumentError)
end
@@ -38,23 +38,23 @@ describe "Matrix.empty" do
end
it "does not accept more than two parameters" do
- lambda{
+ ->{
Matrix.empty(1, 2, 3)
}.should raise_error(ArgumentError)
end
it "raises an error if both dimensions are > 0" do
- lambda{
+ ->{
Matrix.empty(1, 2)
}.should raise_error(ArgumentError)
end
it "raises an error if any dimension is < 0" do
- lambda{
+ ->{
Matrix.empty(-2, 0)
}.should raise_error(ArgumentError)
- lambda{
+ ->{
Matrix.empty(0, -2)
}.should raise_error(ArgumentError)
end