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

not running minitest from the project directory #14

Open
dagda1 opened this issue Aug 31, 2014 · 1 comment
Open

not running minitest from the project directory #14

dagda1 opened this issue Aug 31, 2014 · 1 comment

Comments

@dagda1
Copy link

dagda1 commented Aug 31, 2014

When I try and run a test by pressing C-c ,s the test is not being run from the project directory but from my home directory, e.g.

 bundle exec ruby -Ilib\:test\:spec /Users/paulcowan/projects/crm/test/integration/contacts/import_contact_test.rb -ntest_primary_values_set_if_provided

The project directory is /Users/paulcowan/projects/crm. Is there a way that I can specify the project directory? If I am in the home directory then it does not pick up the correct rbenv version.

@arthurnn
Copy link
Owner

arthurnn commented Oct 6, 2015

Good point.. that will be nice.
I would need to change something in

(let ((file-name (file-relative-name (buffer-file-name) (minitest-project-root)))
(bundle (minitest-bundler-command))
(command (minitest-test-command)))
, to use a relative path if we can.

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

2 participants