Fix js paths when served from somewhere other than /.

This commit is contained in:
Christian Williams
2009-12-29 17:09:07 -06:00
parent 5821de0801
commit c8b38ea47a
4 changed files with 15 additions and 26 deletions

View File

@@ -22,9 +22,9 @@ describe Jasmine::Config do
it "should provide a list of all js files" do
@config.js_files.should == [
'src/javascripts/Example.js',
'spec/javascript/ExampleSpec.js',
'spec/javascript/SpecHelper.js',
'/src/javascripts/Example.js',
'/spec/javascript/ExampleSpec.js',
'/spec/javascript/SpecHelper.js',
]
end
@@ -40,9 +40,9 @@ describe Jasmine::Config do
@config.stub!(:spec_path).and_return("spekz")
@config.js_files.should == [
'public/javascripts/Example.js',
'spekz/javascript/ExampleSpec.js',
'spekz/javascript/SpecHelper.js',
'/public/javascripts/Example.js',
'/spekz/javascript/ExampleSpec.js',
'/spekz/javascript/SpecHelper.js',
]
@config.mappings.should == {