[logaling-commit] logaling/logaling-command [fix-spec] fix spec of Repository#lookup

Back to archive index

null+****@clear***** null+****@clear*****
Wed Feb 8 11:27:28 JST 2012


SUZUKI Miho	2012-02-08 11:27:28 +0900 (Wed, 08 Feb 2012)

  New Revision: a87dced9696908a6071d0d87685812868c07041c

  Log:
    fix spec of Repository#lookup

  Modified files:
    spec/logaling/repository_spec.rb

  Modified: spec/logaling/repository_spec.rb (+1 -0)
===================================================================
--- spec/logaling/repository_spec.rb    2012-02-08 10:41:32 +0900 (38923d9)
+++ spec/logaling/repository_spec.rb    2012-02-08 11:27:28 +0900 (fd1a113)
@@ -36,6 +36,7 @@ module Logaling
         before do
           glossary.add("user-logaling", "ユーザ", "ユーザーではない")
           glossary.add("user-logaling", "ユーザー", "")
+          File.stub!(:mtime).and_return(Time.now - 1)
           repository.index
           @terms = repository.lookup("user-logaling", "en", "ja", project)
         end




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