Permalink
Browse files

improving a bit test names

  • Loading branch information...
plentz committed Apr 22, 2012
1 parent 1a3aff3 commit 0d1759c63e35afc91db008825dd808ec97c31b22
Showing with 2 additions and 2 deletions.
  1. +2 −2 flori_json_test.rb
View
@@ -9,13 +9,13 @@
class FloriJsonTest < MiniTest::Unit::TestCase
#flori/json#97
- def test_json_encoder
+ def test_json_generator
json = JSON.generate({'message' => "á"})
assert_equal("{\"message\":\"á\"}", json)
end
#flori/json#101
- def test_encoding_after_encoding
+ def test_to_json_encoding_result
hash = {"å"=>1}
assert_equal(Encoding::UTF_8, hash.to_json.encoding)
end

0 comments on commit 0d1759c

Please sign in to comment.