test/test_padrino_cache.rb in padrino-cache-0.13.3.2 vs test/test_padrino_cache.rb in padrino-cache-0.13.3.3

- old
+ new

@@ -504,6 +504,21 @@ 2.times { get "/" } assert_equal "1", body 2.times { get "/object" } assert_equal "1", body end + + it 'should cache full mime type of content_type' do + mock_app do + register Padrino::Cache + enable :caching + get '/foo', :cache => true do + content_type :json, :charset => 'utf-8' + '{}' + end + end + get "/foo" + assert_equal 'application/json;charset=utf-8', last_response.content_type + get "/foo" + assert_equal 'application/json;charset=utf-8', last_response.content_type + end end