Kouhei Sutou
null+****@clear*****
Tue Dec 30 15:47:00 JST 2014
Kouhei Sutou 2014-12-30 15:47:00 +0900 (Tue, 30 Dec 2014) New Revision: 7b5d2d0001220b14bbe55f6d47b258cefd980204 https://github.com/ranguba/rroonga/commit/7b5d2d0001220b14bbe55f6d47b258cefd980204 Message: test: use meaningful name It seems that both "post" and "article" are the same meaning. Modified files: test/test-column.rb Modified: test/test-column.rb (+9 -9) =================================================================== --- test/test-column.rb 2014-12-30 15:43:32 +0900 (e0cb6be) +++ test/test-column.rb 2014-12-30 15:47:00 +0900 (be41fd9) @@ -522,18 +522,18 @@ class ColumnTest < Test::Unit::TestCase class TruncateTest < self def test_truncate posts = Groonga::Hash.create(:name => "Posts", :key_type => "ShortText") - posts.define_column("article", "Text") - article = "This is test." - post1 = posts.add("hello1", :article => article) - post2 = posts.add("hello2", :article => article) + posts.define_column("body", "Text") + body = "This is test." + post1 = posts.add("hello1", :body => body) + post2 = posts.add("hello2", :body => body) - assert_equal(article, post1["article"]) - assert_equal(article, post2["article"]) + assert_equal(body, post1["body"]) + assert_equal(body, post2["body"]) - posts.column("article").truncate + posts.column("body").truncate - assert_nil(post1["article"]) - assert_nil(post2["article"]) + assert_nil(post1["body"]) + assert_nil(post2["body"]) end end end -------------- next part -------------- HTML����������������������������...Download