[PATCH] find specs in symlinked directory
Reported by Martin Luder | April 3rd, 2008 @ 12:27 PM | in No-Milestone-Assigned
I store my model files outside of my rails app and put symlinks to the model directory in app/ and spec/. Unfortunately the rspec_on_rails rake task doesn't find the specs if spec/models is a symlink. I have attached a patch that fixes this.
Additionally, I had to replace
require File.dirname(__FILE__) + '/../spec_helper'
with
require 'pathname'
require Pathname.new(File.dirname(__FILE__) + '/../spec_helper').cleanpath.to_s
in the model specs, but that's to be expected.
Comments and changes to this ticket
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Behaviour Driven Development for Ruby.
