mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix variable not initialized warnings
``` activesupport/test/concern_test.rb:20: warning: instance variable @included_ran not initialized activesupport/test/concern_test.rb:28: warning: instance variable @prepended_ran not initialized ```
This commit is contained in:
parent
20f4a2fc3e
commit
879918b586
1 changed files with 2 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue