summaryrefslogtreecommitdiff
path: root/spec/ruby/library/erb/result_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/erb/result_spec.rb')
-rw-r--r--spec/ruby/library/erb/result_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/erb/result_spec.rb b/spec/ruby/library/erb/result_spec.rb
index eb9d0c5356..a29c1ccedb 100644
--- a/spec/ruby/library/erb/result_spec.rb
+++ b/spec/ruby/library/erb/result_spec.rb
@@ -41,7 +41,7 @@ END
it "is not able to h() or u() unless including ERB::Util" do
input = "<%=h '<>' %>"
- lambda {
+ -> {
ERB.new(input).result()
}.should raise_error(NameError)
end
@@ -79,7 +79,7 @@ END
expected = '123'
myerb2.new.main1().should == expected
- lambda {
+ -> {
myerb2.new.main2()
}.should raise_error(NameError)
end