aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/kernel/gsub_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/kernel/gsub_spec.rb')
-rw-r--r--spec/ruby/core/kernel/gsub_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/kernel/gsub_spec.rb b/spec/ruby/core/kernel/gsub_spec.rb
index 2bcb29f60e..a0cb9f2a70 100644
--- a/spec/ruby/core/kernel/gsub_spec.rb
+++ b/spec/ruby/core/kernel/gsub_spec.rb
@@ -10,7 +10,7 @@ ruby_version_is ""..."1.9" do
end
it "raises a TypeError if $_ is not a String" do
- lambda {
+ -> {
$_ = 123
gsub(/./, "!")
}.should raise_error(TypeError)