• Yorick Peterse's avatar
    Fix detecting nested EE constants in RuboCop · e5d75143
    Yorick Peterse authored
    The InjectEnterpriseEditionModule cop would not detect certain nested EE
    constants such as `EE::Foo::Bar::Baz`. This could result in it not
    enforcing `prepend` being placed on the last line. This commit fixes
    this by just performing a string match on the line, instead of relying
    on AST matching.
    e5d75143
inject_enterprise_edition_module_spec.rb 4.3 KB