summaryrefslogtreecommitdiffhomepage
path: root/test/t/nomethoderror.rb
blob: 9eb1221589fc2bbd54f56a1967b1daf597c739d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
##
# NoMethodError ISO Test

assert('NoMethodError', '15.2.32') do
  e2 = nil
  begin
    doesNotExistAsAMethodNameForVerySure("")
  rescue => e1
    e2 = e1
  end

  NoMethodError.class == Class and e2.class == NoMethodError
end