summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/shared/replace.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/array/shared/replace.rb')
-rw-r--r--spec/ruby/core/array/shared/replace.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/array/shared/replace.rb b/spec/ruby/core/array/shared/replace.rb
index b8dae8d33e..b3474fad09 100644
--- a/spec/ruby/core/array/shared/replace.rb
+++ b/spec/ruby/core/array/shared/replace.rb
@@ -53,7 +53,7 @@ describe :array_replace, shared: true do
end
it "raises a #{frozen_error_class} on a frozen array" do
- lambda {
+ -> {
ArraySpecs.frozen_array.send(@method, ArraySpecs.frozen_array)
}.should raise_error(frozen_error_class)
end