`rake spec` does not find specs in symlinked dirs #1113

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

Projects

None yet

1 participant

@myronmarston
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 myronmarston modified the milestone: Post 3.0, 3.0 Mar 24, 2014
@myronmarston myronmarston modified the milestone: Post 3.0, 3.1 Aug 20, 2014
@myronmarston
Member

@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
Member

Closing in favor of #1672.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment