Kouhei Sutou
null+****@clear*****
Tue Dec 30 15:48:31 JST 2014
Kouhei Sutou 2014-12-30 15:48:31 +0900 (Tue, 30 Dec 2014) New Revision: b44ad46a383d6d2a9ed7625ce77005ab98e84d35 https://github.com/ranguba/rroonga/commit/b44ad46a383d6d2a9ed7625ce77005ab98e84d35 Message: test: use meaningful value Modified files: test/test-column.rb Modified: test/test-column.rb (+6 -5) =================================================================== --- test/test-column.rb 2014-12-30 15:47:47 +0900 (21720fa) +++ test/test-column.rb 2014-12-30 15:48:31 +0900 (80f5cf4) @@ -523,12 +523,13 @@ class ColumnTest < Test::Unit::TestCase def test_truncate posts = Groonga::Hash.create(:name => "Posts", :key_type => "ShortText") posts.define_column("body", "Text") - body = "This is test." - post1 = posts.add("title1", :body => body) - post2 = posts.add("title2", :body => body) + body1 = "body1" + body2 = "body2" + post1 = posts.add("title1", :body => body1) + post2 = posts.add("title2", :body => body2) - assert_equal(body, post1["body"]) - assert_equal(body, post2["body"]) + assert_equal(body1, post1["body"]) + assert_equal(body2, post2["body"]) posts.column("body").truncate -------------- next part -------------- HTML����������������������������... Download