File tree 7 files changed +10
-17
lines changed
7 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 9
9
" .travis.yml" ,
10
10
" Gemfile" ,
11
11
" Gemfile.lock" ,
12
+ " vendor/" ,
12
13
" test/"
13
14
]
14
15
}
Original file line number Diff line number Diff line change 1
1
require 'sinatra'
2
2
require 'json'
3
3
4
- set :public_folder , settings . root
4
+ set :public_folder , File . dirname ( settings . root )
5
5
enable :static
6
6
7
7
helpers do
@@ -31,14 +31,6 @@ def title(str)
31
31
erb :qunit
32
32
end
33
33
34
- get '/jquery.pjax.js' do
35
- send_file "#{ settings . root } /../jquery.pjax.js"
36
- end
37
-
38
- get '/test/:file' do
39
- send_file "#{ settings . root } /../test/#{ params [ :file ] } "
40
- end
41
-
42
34
get '/env.html' do
43
35
erb :env , :layout => !pjax?
44
36
end
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="utf-8 ">
5
5
< title > <%= @title %> </ title >
6
- < script type ="text/javascript " src ="test/ jquery-1.9.0 .js "> </ script >
7
- < script type ="text/javascript " src ="jquery.pjax.js "> </ script >
6
+ < script type ="text/javascript " src ="/vendor/ jquery.js "> </ script >
7
+ < script type ="text/javascript " src ="/ jquery.pjax.js "> </ script >
8
8
</ head >
9
9
< body >
10
10
< div id ="main ">
Original file line number Diff line number Diff line change 2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="utf-8 ">
5
- < link rel ="stylesheet " href ="/test /qunit.css ">
5
+ < link rel ="stylesheet " href ="/vendor /qunit.css ">
6
6
7
- < script type ="text/javascript " src ="/test /jquery-1.9.0 .js "> </ script >
8
- < script type ="text/javascript " src ="/test /qunit.js "> </ script >
7
+ < script type ="text/javascript " src ="/vendor /jquery.js "> </ script >
8
+ < script type ="text/javascript " src ="/vendor /qunit.js "> </ script >
9
9
< script type ="text/javascript "> QUnit . config . testTimeout = 10000 </ script >
10
10
< script type ="text/javascript " src ="/jquery.pjax.js "> </ script >
11
- < script type ="text/javascript " src ="/unit/pjax.js "> </ script >
12
- < script type ="text/javascript " src ="/unit/fn_pjax.js "> </ script >
13
- < script type ="text/javascript " src ="/unit/pjax_fallback.js "> </ script >
11
+ < script type ="text/javascript " src ="/test/ unit/pjax.js "> </ script >
12
+ < script type ="text/javascript " src ="/test/ unit/fn_pjax.js "> </ script >
13
+ < script type ="text/javascript " src ="/test/ unit/pjax_fallback.js "> </ script >
14
14
</ head >
15
15
< body >
16
16
< div id ="qunit "> </ div >
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments