[logaling-commit] logaling/logaling-command at 5bd7607 [master] spec repository: suppress deprecation warnings by rspec 2.99

Back to archive index

cosmo0920 null+****@clear*****
Wed Oct 8 19:00:46 JST 2014


cosmo0920	2014-10-08 19:00:46 +0900 (Wed, 08 Oct 2014)

  New Revision: 5bd76075737081e5dc32f3f9d20306c170c8b836
  https://github.com/logaling/logaling-command/commit/5bd76075737081e5dc32f3f9d20306c170c8b836

  Merged 656b96a: Merge pull request #97 from cosmo0920/migrate-rspec-2-to-3

  Message:
    spec repository: suppress deprecation warnings by rspec 2.99

  Modified files:
    spec/logaling/repository_spec.rb

  Modified: spec/logaling/repository_spec.rb (+5 -5)
===================================================================
--- spec/logaling/repository_spec.rb    2014-08-17 12:42:22 +0900 (01225a6)
+++ spec/logaling/repository_spec.rb    2014-10-08 19:00:46 +0900 (aeb0382)
@@ -38,7 +38,7 @@ module Logaling
         before do
           glossary.add("user-logaling", "ユーザ", "ユーザーではない")
           glossary.add("user-logaling", "ユーザー", "")
-          File.stub!(:mtime).and_return(Time.now - 1)
+          File.stub(:mtime).and_return(Time.now - 1)
           repository.index
           @terms = repository.lookup("user-logaling", glossary)
         end
@@ -54,7 +54,7 @@ module Logaling
           glossary.add("user-logaling", "ユーザ", "ユーザーではない")
           glossary.add("user-logaling test", "ユーザーてすと", "")
           glossary.add("ゆーざ", "test user-logaling test text", "")
-          File.stub!(:mtime).and_return(Time.now - 1)
+          File.stub(:mtime).and_return(Time.now - 1)
           repository.index
           options = {"dictionary"=>true}
           @terms = repository.lookup("user-logaling", glossary, options)
@@ -97,7 +97,7 @@ module Logaling
         before do
           glossary.add("user", "ユーザ", "ユーザーではない")
           glossary.add("user-logaling", "ユーザ", "ユーザーと迷い中 #{annotation_word}")
-          File.stub!(:mtime).and_return(Time.now - 1)
+          File.stub(:mtime).and_return(Time.now - 1)
           repository.index
           options = {"fixed" => true}
           @terms = repository.lookup("user", glossary, options)
@@ -214,7 +214,7 @@ module Logaling
         end
 
         it "should not be indexed on db" do
-          @ret.should be_false
+          @ret.should be_falsey
         end
       end
 
@@ -228,7 +228,7 @@ module Logaling
         end
 
         it "should be indexed on db" do
-          @ret.should be_true
+          @ret.should be_truthy
         end
       end
       after do
-------------- next part --------------
An HTML attachment was scrubbed...
Télécharger 



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