test/http_test.rb in radiospieler-0.3.10 vs test/http_test.rb in radiospieler-0.3.11

- old
+ new

@@ -36,6 +36,13 @@ VCR.use_cassette('http_test', :record => :new_episodes) do body, headers = Http.get_binary("http://nowhere.test/9162.xml", 0) assert_equal "ASCII-8BIT", body.encoding.name end end + + def test_get_charset_from_header + VCR.use_cassette('http_test', :record => :new_episodes) do + body = Http.get("http://www.livegigs.de/berlin/termine-babylon_mitte-14264", 0) + assert(body =~ /präsentiert/) + end + end end