[Groonga-commit] ranguba/groonga-client-model at c894b2a [master] Simpler

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Mar 6 10:22:10 JST 2017


Kouhei Sutou	2017-03-06 10:22:10 +0900 (Mon, 06 Mar 2017)

  New Revision: c894b2a9556b5d19d4f9f14d5ded27a18918fa2a
  https://github.com/ranguba/groonga-client-model/commit/c894b2a9556b5d19d4f9f14d5ded27a18918fa2a

  Message:
    Simpler

  Modified files:
    test/unit/test_record.rb

  Modified: test/unit/test_record.rb (+4 -8)
===================================================================
--- test/unit/test_record.rb    2017-03-06 10:14:30 +0900 (bb8db9c)
+++ test/unit/test_record.rb    2017-03-06 10:22:10 +0900 (667d608)
@@ -363,8 +363,7 @@ column_create timestamps updated_on COLUMN_SCALAR Time
 
     test("created_at") do
       now = Time.now
-      timestamp = Timestamp.new
-      timestamp.save
+      timestamp = Timestamp.create
       saved_timestamp = Timestamp.find(timestamp._id)
       assert do
         saved_timestamp.created_at > now
@@ -373,8 +372,7 @@ column_create timestamps updated_on COLUMN_SCALAR Time
 
     test("created_on") do
       now = Time.now
-      timestamp = Timestamp.new
-      timestamp.save
+      timestamp = Timestamp.create
       saved_timestamp = Timestamp.find(timestamp._id)
       assert do
         saved_timestamp.created_on > now
@@ -382,8 +380,7 @@ column_create timestamps updated_on COLUMN_SCALAR Time
     end
 
     test("updated_at") do
-      timestamp = Timestamp.new
-      timestamp.save
+      timestamp = Timestamp.create
       saved_timestamp = Timestamp.find(timestamp._id)
       created_at = saved_timestamp.created_at
       saved_timestamp.save
@@ -395,8 +392,7 @@ column_create timestamps updated_on COLUMN_SCALAR Time
     end
 
     test("updated_on") do
-      timestamp = Timestamp.new
-      timestamp.save
+      timestamp = Timestamp.create
       saved_timestamp = Timestamp.find(timestamp._id)
       created_on = saved_timestamp.created_on
       saved_timestamp.save
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index