Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rake spec does not find specs in symlinked dirs #1113

Closed
myronmarston opened this issue Oct 15, 2013 · 2 comments
Closed

rake spec does not find specs in symlinked dirs #1113

myronmarston opened this issue Oct 15, 2013 · 2 comments
Milestone

Comments

@myronmarston
Copy link
Member

As reported by @marick in https://gist.github.com/marick/6997629 :

   627 $ rails --version
    Rails 3.2.13
    628 $ rspec --version
    2.13.1

Took one lib and one spec directory from application A for use in application B. Call the two directories DD. They went into their own repository.

DD was pulled into the `subtrees/DD` directory:

    B/
      app/
      lib/
      spec/
      subtrees/
        DD/
          lib/
          spec/


So that the two directories would look integrated into B, we used symlinks:

    B/
      app/
      lib/
        DD -> ../subtrees/DD/lib
      spec/
        lib/
          DD -> ../../subtrees/DD/spec
      subtrees/
        DD/
          lib/
          spec/

`rake spec` would find all the specs inside `spec`, but it would *not* run the DD specs.

`rspec spec/lib/DD/` would run the subtree specs.

#459 looks like it should have fixed it but did not.

@myronmarston
Copy link
Member Author

@marick -- there's a fix for this in #1672 if you want to give it a shot. Sorry it took us so long to get to this!

@myronmarston
Copy link
Member Author

Closing in favor of #1672.

MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this issue Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant