Hi guys,
First off, I noticed that at https://github.com/pivotal/jasmine-gem it says "Please file issues here at Github" at the bottom of the README, but that the project doesn't have an Issues section. Oops!
Also, we ran into an issue with the rake tasks supplied by the jasmine gem. I noticed the lines that load a custom jasmine_config.rb file if present:
jasmine_config_overrides = 'spec/javascripts/support/jasmine_config.rb'
require jasmine_config_overrides if File.exist?(jasmine_config_overrides)
https://github.com/pivotal/jasmine-gem/blob/master/lib/jasmine/tasks/jasmine.rake#L33-34
The problem we're running into is when the file exists at "spec/javascripts/support/jasmine_config.rb" relative to the current directory, but the current directory is not in the load path. (such as while in the root of a Rails project)
So File.exist? for the relative path returns true, but the require fails.
It seems that we could just change it to
jasmine_config_overrides = File.join(Dir.pwd, 'spec/javascripts/support/jasmine_config.rb')
require jasmine_config_overrides if File.exist?(jasmine_config_overrides)
and it would work.
Am I on the right track, or is there something I'm not understanding?
Thanks!
--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To post to this group, send email to jasmi...@googlegroups.com.
To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.