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.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/library/erb/result_spec.rb b/spec/ruby/library/erb/result_spec.rb
index eb9d0c5356..84333031ec 100644
--- a/spec/ruby/library/erb/result_spec.rb
+++ b/spec/ruby/library/erb/result_spec.rb
@@ -41,9 +41,9 @@ 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)
+ }.should.raise(NameError)
end
@@ -79,8 +79,8 @@ END
expected = '123'
myerb2.new.main1().should == expected
- lambda {
+ -> {
myerb2.new.main2()
- }.should raise_error(NameError)
+ }.should.raise(NameError)
end
end