jasmine / jasmine-gem

Jasmine ruby gem
682 stars 274 forks source link

rake jasmine:ci - Fixed issue where spec path was incorrect when using an absolute path which contains spec/javascripts/ #273

Closed thoiberg closed 7 years ago

thoiberg commented 7 years ago

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