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