diff --git a/packages/ruby/server/test/server_dir_test.rb b/packages/ruby/server/test/server_dir_test.rb index 3c852e3..bbf55bc 100644 --- a/packages/ruby/server/test/server_dir_test.rb +++ b/packages/ruby/server/test/server_dir_test.rb @@ -8,14 +8,14 @@ class ServerDirTest < Test::Unit::TestCase get "/" assert_equal 200, last_response.status assert_equal "text/html", last_response.content_type - assert_equal bytesize("./test/fakeweb/index.html"), last_response.content_length + assert_equal bytesize("./test/webroot/index.html"), last_response.content_length end def test_ttf_font get "/fonts/roboto-mono-regular.ttf" assert_equal 200, last_response.status assert_equal "font/ttf", last_response.content_type - assert_equal bytesize("./test/fakeweb/fonts/roboto-mono-regular.ttf"), + assert_equal bytesize("./test/webroot/fonts/roboto-mono-regular.ttf"), last_response.content_length end @@ -23,7 +23,7 @@ class ServerDirTest < Test::Unit::TestCase get "/js/index.js" assert_equal 200, last_response.status assert_equal "application/javascript", last_response.content_type - assert_equal bytesize("./test/fakeweb/js/index.js"), + assert_equal bytesize("./test/webroot/js/index.js"), last_response.content_length end @@ -31,7 +31,7 @@ class ServerDirTest < Test::Unit::TestCase get "/images/0x1eef.png" assert_equal 200, last_response.status assert_equal "image/png", last_response.content_type - assert_equal bytesize("./test/fakeweb/images/0x1eef.png"), + assert_equal bytesize("./test/webroot/images/0x1eef.png"), last_response.content_length end @@ -39,19 +39,19 @@ class ServerDirTest < Test::Unit::TestCase get "/json/1.json" assert_equal 200, last_response.status assert_equal "application/json", last_response.content_type - assert_equal bytesize("./test/fakeweb/json/1.json"), + assert_equal bytesize("./test/webroot/json/1.json"), last_response.content_length end def test_permission_denied - File.chmod 0, "./test/fakeweb/permission_denied.html" + File.chmod 0, "./test/webroot/permission_denied.html" get "/permission_denied.html" assert_equal 403, last_response.status assert_equal "text/plain", last_response.content_type assert_equal "Permission denied".bytesize, last_response.content_length assert_equal "Permission denied", last_response.body ensure - File.chmod 0440, "./test/fakeweb/permission_denied.html" + File.chmod 0440, "./test/webroot/permission_denied.html" end def test_page_not_found @@ -65,7 +65,7 @@ class ServerDirTest < Test::Unit::TestCase private def app - @app ||= Server.app("./test/fakeweb/") + @app ||= Server.app("./test/webroot/") end def bytesize(path) diff --git a/packages/ruby/server/test/fakeweb/fonts/roboto-mono-regular.ttf b/packages/ruby/server/test/webroot/fonts/roboto-mono-regular.ttf similarity index 100% rename from packages/ruby/server/test/fakeweb/fonts/roboto-mono-regular.ttf rename to packages/ruby/server/test/webroot/fonts/roboto-mono-regular.ttf diff --git a/packages/ruby/server/test/fakeweb/images/0x1eef.png b/packages/ruby/server/test/webroot/images/0x1eef.png similarity index 100% rename from packages/ruby/server/test/fakeweb/images/0x1eef.png rename to packages/ruby/server/test/webroot/images/0x1eef.png diff --git a/packages/ruby/server/test/fakeweb/index.html b/packages/ruby/server/test/webroot/index.html similarity index 100% rename from packages/ruby/server/test/fakeweb/index.html rename to packages/ruby/server/test/webroot/index.html diff --git a/packages/ruby/server/test/fakeweb/js/index.js b/packages/ruby/server/test/webroot/js/index.js similarity index 100% rename from packages/ruby/server/test/fakeweb/js/index.js rename to packages/ruby/server/test/webroot/js/index.js diff --git a/packages/ruby/server/test/fakeweb/json/1.json b/packages/ruby/server/test/webroot/json/1.json similarity index 100% rename from packages/ruby/server/test/fakeweb/json/1.json rename to packages/ruby/server/test/webroot/json/1.json diff --git a/packages/ruby/server/test/fakeweb/permission_denied.html b/packages/ruby/server/test/webroot/permission_denied.html similarity index 100% rename from packages/ruby/server/test/fakeweb/permission_denied.html rename to packages/ruby/server/test/webroot/permission_denied.html