Make the Sinatra app directory aware.

This commit is contained in:
Darren Oakley
2012-06-18 16:00:14 +01:00
parent b53c961db2
commit 971cbb94f6
25 changed files with 468 additions and 127 deletions
+2 -2
View File
@@ -75,7 +75,7 @@ context "Frontend Unicode support" do
page = @wiki.page('PG')
assert_equal '다른 text', utf8(page.raw_data)
post '/edit/PG', :content => '바뀐 text', :message => 'ghi'
post '/edit/PG', :page => 'PG', :content => '바뀐 text', :message => 'ghi'
follow_redirect!
assert last_response.ok?
@@ -96,7 +96,7 @@ context "Frontend Unicode support" do
page = @wiki.page('한글')
assert_equal '다른 text', utf8(page.raw_data)
post '/edit/' + CGI.escape('한글'), :content => '바뀐 text',
post '/edit/' + CGI.escape('한글'), :page => '한글', :content => '바뀐 text',
:format => 'markdown', :message => 'ghi'
follow_redirect!
assert last_response.ok?