Skip to content

test_require_individual_library_files: does not work correctly without bundler #780

Open
@voxik

Description

@voxik

I am not sure is supposed be the purpose of the test_require_individual_library_files test case. I assume it should test that all files has correctly specified their requires. If that is the case, then this test works just when executed using bundle exec, but fails to catch, that the lib/sprockets/erb_processor.rb fails this condition. IOW this fails:

$ ruby -Ilib lib/sprockets/erb_processor.rb
lib/sprockets/erb_processor.rb:4:in `<main>': uninitialized constant Sprockets (NameError)

class Sprockets::ERBProcessor
      ^^^^^^^^^
Did you mean?  Process

while it works with bundle exec.

IMHO, the test case should ensure, that the files are required even without Bundler. It does not impact me in any real life example, so I'm just reporting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions