From 77bab373c9d3e667dcb5ad83e4f70aa10ebef7c0 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 22 Mar 2016 21:02:23 +0100 Subject: [PATCH] Updated tests regarding new puma behaviour with no specified content type on request. --- test/integration/user_agent_test.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/integration/user_agent_test.rb b/test/integration/user_agent_test.rb index 47b8cd425..70f6ea081 100644 --- a/test/integration/user_agent_test.rb +++ b/test/integration/user_agent_test.rb @@ -18,7 +18,7 @@ class UserAgentTest < ActiveSupport::TestCase assert_equal(String, result.body.class) assert(result.body =~ /"get"/) assert(result.body =~ /"123"/) - assert(result.body =~ %r{"text/plain"}) + assert(result.body =~ /"content_type_requested":null/) # get / 404 result = UserAgent.get( @@ -92,7 +92,7 @@ class UserAgentTest < ActiveSupport::TestCase assert_equal('200', result.code) assert_equal(String, result.body.class) assert(result.body =~ /"delete"/) - assert(result.body =~ %r{"text/plain"}) + assert(result.body =~ /"content_type_requested":null/) # delete / 404 result = UserAgent.delete( @@ -120,7 +120,7 @@ class UserAgentTest < ActiveSupport::TestCase assert_equal(String, result.body.class) assert(result.body =~ /"get"/) assert(result.body =~ /"123"/) - assert(result.body =~ %r{"text/plain"}) + assert(result.body =~ /"content_type_requested":null/) # get / 401 result = UserAgent.get( @@ -219,7 +219,7 @@ class UserAgentTest < ActiveSupport::TestCase assert_equal('200', result.code) assert_equal(String, result.body.class) assert(result.body =~ /"delete"/) - assert(result.body =~ %r{"text/plain"}) + assert(result.body =~ /"content_type_requested":null/) # delete / 401 result = UserAgent.delete( @@ -248,7 +248,7 @@ class UserAgentTest < ActiveSupport::TestCase assert_equal(String, result.body.class) assert(result.body =~ /"get"/) assert(result.body =~ /"abc"/) - assert(result.body =~ %r{"text/plain"}) + assert(result.body =~ /"content_type_requested":null/) # get / 301 result = UserAgent.request( @@ -264,7 +264,7 @@ class UserAgentTest < ActiveSupport::TestCase assert_equal(String, result.body.class) assert(result.body =~ /"get"/) assert(result.body =~ /"abc"/) - assert(result.body =~ %r{"text/plain"}) + assert(result.body =~ /"content_type_requested":null/) # get / 401 result = UserAgent.request( @@ -293,7 +293,7 @@ class UserAgentTest < ActiveSupport::TestCase assert_equal(String, result.body.class) assert(result.body =~ /"get"/) assert(result.body =~ /"123"/) - assert(result.body =~ %r{"text/plain"}) + assert(result.body =~ /"content_type_requested":null/) # ftp / 200 result = UserAgent.request(