Skip to content
This repository was archived by the owner on Feb 9, 2025. It is now read-only.
This repository was archived by the owner on Feb 9, 2025. It is now read-only.

Absolute paths to test create incorrect test file paths #16

@vinnyglennon

Description

@vinnyglennon

Absolute paths reuse absolute path within spec folder

Current Behaviour:

codegen /Users/vinnyglennon/src/app/models/redirect.rb

Finding matcher for /Users/vinnyglennon/src/app/models/redirect.rb...
Test file path: spec/Users/vinnyglennon/src/models/redirect_spec.rb
Creating test file if it doesn't exist...
Running codegen...

Expected Behaviour

codegen /Users/vinnyglennon/src/app/models/redirect.rb

Finding matcher for /Users/vinnyglennon/src/app/models/redirect.rb...
Test file path: spec/models/redirect_spec.rb
Creating test file if it doesn't exist...
Running codegen...

Relative paths work fine:

codegen app/models/redirect.rb

Finding matcher for app/models/redirect.rb...
Test file path: spec/models/redirect_spec.rb
Creating test file if it doesn't exist...
Running codegen...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions