diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2023-11-17 17:28:52 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2023-11-17 17:28:52 +0000 |
commit | 0fc5232107e8701dc0d1f2a6008e2dbecb73293b (patch) | |
tree | 778cf322e8e43c8e65c6960450992d913b1713f8 /test | |
parent | 8fbe437ca690d92a6d75b1d5314b5aa3bf8787b9 (diff) | |
download | unit-0fc5232107e8701dc0d1f2a6008e2dbecb73293b.tar.gz unit-0fc5232107e8701dc0d1f2a6008e2dbecb73293b.tar.bz2 |
Tests: added more expected Ruby features.
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/multipart/config.ru | 7 | ||||
-rw-r--r-- | test/ruby/session/config.ru | 6 | ||||
-rw-r--r-- | test/test_ruby_application.py | 14 |
3 files changed, 27 insertions, 0 deletions
diff --git a/test/ruby/multipart/config.ru b/test/ruby/multipart/config.ru new file mode 100644 index 00000000..9187997c --- /dev/null +++ b/test/ruby/multipart/config.ru @@ -0,0 +1,7 @@ +app = Proc.new do |env| + [200, { + 'x-multipart-buffer' => env['rack.multipart.buffer_size'].to_s + }, []] +end + +run app diff --git a/test/ruby/session/config.ru b/test/ruby/session/config.ru new file mode 100644 index 00000000..8cea0588 --- /dev/null +++ b/test/ruby/session/config.ru @@ -0,0 +1,6 @@ +app = Proc.new do |env| + env['rack.session'].clear + [200, {}, []] +end + +run app diff --git a/test/test_ruby_application.py b/test/test_ruby_application.py index fb161c61..3ac62f71 100644 --- a/test/test_ruby_application.py +++ b/test/test_ruby_application.py @@ -315,6 +315,20 @@ def test_ruby_application_header_rack(): assert client.get()['status'] == 500, 'header rack' +@pytest.mark.skip('not yet') +def test_ruby_application_session(): + client.load('session') + + assert client.get()['status'] == 200 + + +@pytest.mark.skip('not yet') +def test_ruby_application_multipart(): + client.load('multipart') + + assert client.get()['status'] == 200 + + def test_ruby_application_body_empty(): client.load('body_empty') |