summaryrefslogtreecommitdiff
path: root/bootstraptest/test_attr.rb
blob: c70e2c21a6c0d6cee04497db0a57863d08f7b86e (plain)
1
2
3
4
5
6
7
8
9
10
assert_equal %{ok}, %{
  class A
    attr :m
  end
  begin
    A.new.m(3)
  rescue ArgumentError => e
    print "ok"
  end
}, '[ruby-core:15120]'