File tree Expand file tree Collapse file tree 7 files changed +10
-17
lines changed Expand file tree Collapse file tree 7 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 99 " .travis.yml" ,
1010 " Gemfile" ,
1111 " Gemfile.lock" ,
12+ " vendor/" ,
1213 " test/"
1314 ]
1415}
Original file line number Diff line number Diff line change 11require 'sinatra'
22require 'json'
33
4- set :public_folder , settings . root
4+ set :public_folder , File . dirname ( settings . root )
55enable :static
66
77helpers do
@@ -31,14 +31,6 @@ def title(str)
3131 erb :qunit
3232end
3333
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-
4234get '/env.html' do
4335 erb :env , :layout => !pjax?
4436end
Original file line number Diff line number Diff line change 33< head >
44 < meta charset ="utf-8 ">
55 < 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 >
88</ head >
99< body >
1010 < div id ="main ">
Original file line number Diff line number Diff line change 22< html lang ="en ">
33< head >
44 < meta charset ="utf-8 ">
5- < link rel ="stylesheet " href ="/test /qunit.css ">
5+ < link rel ="stylesheet " href ="/vendor /qunit.css ">
66
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 >
99 < script type ="text/javascript "> QUnit . config . testTimeout = 10000 </ script >
1010 < 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 >
1414</ head >
1515< body >
1616 < 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