Skip to content

Commit

Permalink
Fix ivar name (#219)
Browse files Browse the repository at this point in the history
Found in [ruby
2.7](https://github.com/kachick/ruby-gem-template/actions/runs/3179027537/jobs/5181100027),
it makes warnings `warning: instance variable @cached_parent_test not
initialized`

Looks related to 3058e8a
  • Loading branch information
kachick authored Oct 4, 2022
1 parent c70ccf1 commit 6c5b074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test/unit/attribute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def find_attribute(method_name, name, options={})
ancestor.is_a?(Class) and
ancestor < Test::Unit::Attribute
end
return nil if @cached_parent_test.nil?
return nil if @cached_parent_test_case.nil?

@cached_parent_test_case.find_attribute(method_name, name, options)
end
Expand Down

0 comments on commit 6c5b074

Please sign in to comment.