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

relative paths outside the root do not get loaded into the context #32

Open trashhalo opened 10 years ago

trashhalo commented 10 years ago

discovered this trying to work around #31 if you load a relative url outside the repository it will not say file not found but when it executes your spec the variables that are defined in that file are not available to you. Example:

// require_relative('../../../../../usr/local/rvm/gems/ruby-2.0.0-p247@proposal_tool/gems/rails-assets-angular-1.2.8/vendor/assets/javascripts/angular/angular.js')

Every spec says ReferenceError: Can't find variable: angular despite the path being correct.