1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #38708 from utilum/AS_concern_test_vars_not_initialized_warning

Fix variable not initialized warnings
This commit is contained in:
Kasper Timm Hansen 2020-03-13 00:58:07 +01:00 committed by GitHub
commit 0c715e599e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,25 +8,11 @@ class ConcernTest < ActiveSupport::TestCase
extend ActiveSupport::Concern
class_methods do
attr_accessor :included_ran, :prepended_ran
def baz
"baz"
end
def included_ran=(value)
@included_ran = value
end
def included_ran
@included_ran
end
def prepended_ran=(value)
@prepended_ran = value
end
def prepended_ran
@prepended_ran
end
end
included do