-
Notifications
You must be signed in to change notification settings - Fork 275
Change folders structure in a non-rails project #128
Comments
If you're using jasmine.yml you almost always will want to set this in jasmine.yml, as it reads this config right before starting up. If you're using HEAD you have the opportunity to override this (using jasmine_helper.rb) in a Jasmine.configure block, but otherwise jasmine.yml takes precedence |
Thanks for the reply. I see... but maybe I'm missing something. I can override jasmine.yml options in spec/javascripts/support/jasmine_helper.rb . But I have not a spec/javascripts/support folder because my folder structure is different and I'd like to keep al my tests in a folder which is not "spec" I hope I explained it well :) |
Ah, I understand. That may be trickier, I think right now you'll have to override the Rakefile and the run_specs.rb file. Jasmine.load_configuration_from_yaml takes an optional path, which you'll want to set in your Rakefile, eg.
You'll also need to override Jasmine.runner_filepath with a new filepath that returns a custom run_specs.rb where you have also called load_configuration_from_yaml with the full path to your yml. I'm not sure of an easier way to do this. Maybe we could allow you to configure the yaml location in Jasmine.configure and then you could just override that in your Rakefile? |
Hi, thank you very much. I'm gonna try your solution within some days! |
Hi
I cannot understand how to change jasmine-gem default folders structure. For example: "public/javascripts" should be "js" and "spec" should be "protected/tests"
I've tried with
but it didn't work. Thanks :)
The text was updated successfully, but these errors were encountered: