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

Added support for changing base fixture directory using path argument #3

Closed
wants to merge 2 commits into from
Closed

Conversation

cjcolvar
Copy link
Member

@cjcolvar cjcolvar commented Feb 1, 2012

This change will detect if the path argument is a file or a directory to use along with the pid argument. This allows use of a base directory other than spec/fixtures/ .

I also replaced the code with the current code from the ActiveFedora load task with the change of the default fixture directory. I've tested the AF code, but I'm not certain if ActiveFedora::FixtureLoader works in all cases covered by the AF load task. I'll look into this later (HYDRA-741), but for now this should work.

This was requested by mkorcy.

@jcoyne
Copy link
Member

jcoyne commented Feb 1, 2012

Is there any reason we need to remove the use of FixtureLoader? I'd prefer we push more code into reusable libraries rather than rake tasks.

@cjcolvar
Copy link
Member Author

cjcolvar commented Feb 2, 2012

I agree. I submitted this as a stop gap measure until I have a chance to get to HYDRA-741. If you think it would be better to wait until HYDRA-741 then that's fine. But until then repo:load in AF behaves differently than repo:load in HH which could be confusing (or not).

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

Successfully merging this pull request may close these issues.

2 participants