When running rake jasmine:ci, if using the spec environment variable with an absolute path that contains spec/javascripts/ (eg: rake jasmine:ci spec=/Users/joeyjojojr/project/spec/javascripts/tests.js) it would cut out the spec/javascripts/ part and try and run a nonexistent file (/Users/joeyjojojr/project/tests.js).
This PR fixes this so when specifying an absolute path that includes spec/javascripts/ the file path is not mangled
When running
rake jasmine:ci
, if using thespec
environment variable with an absolute path that containsspec/javascripts/
(eg:rake jasmine:ci spec=/Users/joeyjojojr/project/spec/javascripts/tests.js
) it would cut out thespec/javascripts/
part and try and run a nonexistent file (/Users/joeyjojojr/project/tests.js
).This PR fixes this so when specifying an absolute path that includes
spec/javascripts/
the file path is not mangled