drewdeponte / snapdragon

A Jasmine JavaScript test runner that lets you run tests on the command-line similar to RSpec.
Other
6 stars 8 forks source link

Make the directory snapdragon is run from (generally project root dir) is available via /:path in web_application.rb #11

Closed drewdeponte closed 11 years ago

drewdeponte commented 11 years ago

This is especially valuable in the following scenario:

  1. You have your Jasmine spec files in spec/javascripts/.
  2. You have your Fixtures stored in spec/fixtures
  3. 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.