You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it'Looks up components in nested namespaces correctly'domount'Foo::Bar::Zoom'domoduleFoomoduleBarclassZoom < HyperComponentrenderdoWham()endendendendmoduleWhamendmoduleFoomoduleBarclassWham < HyperComponentrender(DIV)do"found me!"endendendendendexpect(page).tohave_content('found me!')end
The problem is in the lookup_const method in the Tags module the const_defined? and const_get calls must include the second false parameter to prevent looking up the ancestor tree.
However this has a knock on effect that breaks hyper-model's INPUT tag redefinition. In that method redefinition the newly defined tag constants are made on the Tag module scope (incorrectly) and this bug allowed that to work. So that has to also be fixed, i.e. the new tags need to be defined against Object.
The text was updated successfully, but these errors were encountered:
For example this test case will fail:
The problem is in the
lookup_const
method in theTags
module theconst_defined?
andconst_get
calls must include the secondfalse
parameter to prevent looking up the ancestor tree.You can patch it like this:
For the hyperloop legacy branch the same method is in
However this has a knock on effect that breaks hyper-model's INPUT tag redefinition. In that method redefinition the newly defined tag constants are made on the Tag module scope (incorrectly) and this bug allowed that to work. So that has to also be fixed, i.e. the new tags need to be defined against Object.
The text was updated successfully, but these errors were encountered: