jasmine-contrib / grunt-jasmine-node

Grunt task for running jasmine-node
MIT License
67 stars 99 forks source link

Stop running tests twice #28

Closed rick-kilgore closed 10 years ago

rick-kilgore commented 11 years ago

When I specify a value for specFolders it adds projectRoot to this list and ends up running my tests twice. It does so even if I do not specify a projectRoot, because projectRoot defaults to '.'

This change prevents the bad behavior by not adding projectRoot to the specFolders list if the list already has one or more entries.

robmcguinness commented 10 years ago

+1

s9tpepper commented 10 years ago

This should be fixed with the merged changes in 1d67d1cbae, the default for projectRoot was changed to "" so it doesn't get added if it is not specified.

rick-kilgore commented 10 years ago

Sounds good - thanks!