This is especially valuable in the following scenario:
You have your Jasmine spec files in spec/javascripts/.
You have your Fixtures stored in spec/fixtures
You have a Jasmine spec that needs access to a Fixture located in spec/fixtures
I am sure there are other scenarios where the Jasmine specs may need to access various paths and using the current working directory of the snapdragon process allows us to avoid requiring a configuration files which specifies the root of the project.
In the future we may decided that we want to use the current working directory of the snapdragon process as the default and allow this to be overridden with some sort of configuration.
This is especially valuable in the following scenario:
spec/javascripts/
.spec/fixtures
spec/fixtures
I am sure there are other scenarios where the Jasmine specs may need to access various paths and using the current working directory of the snapdragon process allows us to avoid requiring a configuration files which specifies the root of the project.
In the future we may decided that we want to use the current working directory of the snapdragon process as the default and allow this to be overridden with some sort of configuration.