[logaling-commit] logaling/logaling-command at 918964f [master] spec glossary: suppress deprecation warnings by rspec 2.99

Back to archive index

cosmo0920 null+****@clear*****
Wed Oct 8 19:04:22 JST 2014


cosmo0920	2014-10-08 19:04:22 +0900 (Wed, 08 Oct 2014)

  New Revision: 918964fbdb07f9fad0a681cf122b102dd333923f
  https://github.com/logaling/logaling-command/commit/918964fbdb07f9fad0a681cf122b102dd333923f

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

  Message:
    spec glossary: suppress deprecation warnings by rspec 2.99

  Modified files:
    spec/logaling/glossary_spec.rb

  Modified: spec/logaling/glossary_spec.rb (+7 -7)
===================================================================
--- spec/logaling/glossary_spec.rb    2014-10-08 19:00:46 +0900 (bea2a29)
+++ spec/logaling/glossary_spec.rb    2014-10-08 19:04:22 +0900 (ec1ca95)
@@ -119,8 +119,8 @@ module Logaling
         end
 
         it 'should delete the bilingual pair' do
-          @result.any?{|term| term[:source_term] == "delete_logaling" && term[:target_term] == "てすと2"}.should be_true
-          @result.any?{|term| term[:source_term] == "delete_logaling" && term[:target_term] == "てすと1"}.should be_false
+          @result.any?{|term| term[:source_term] == "delete_logaling" && term[:target_term] == "てすと2"}.should be_truthy
+          @result.any?{|term| term[:source_term] == "delete_logaling" && term[:target_term] == "てすと1"}.should be_falsey
         end
       end
 
@@ -155,7 +155,7 @@ module Logaling
           end
 
           it 'should delete the term' do
-            @result.any?{|term| term[:source_term] == "user_logaling" && term[:target_term] == "ユーザ"}.should be_false
+            @result.any?{|term| term[:source_term] == "user_logaling" && term[:target_term] == "ユーザ"}.should be_falsey
           end
         end
 
@@ -174,10 +174,10 @@ module Logaling
           }
 
           it "should delete terms when force option is true" do
-            @result.any?{|term| term == {"source_term"=>"delete_logaling", "target_term"=>"てすと1", "note"=>"備考"}}.should be_false
-            @result.any?{|term| term == {"source_term"=>"delete_logaling", "target_term"=>"てすと2", "note"=>"備考"}}.should be_false
-            @result.any?{|term| term == {"source_term"=>"user_logaling", "target_term"=>"ユーザ1", "note"=>"備考"}}.should be_true
-            @result.any?{|term| term == {"source_term"=>"user_logaling", "target_term"=>"ユーザ2", "note"=>"備考"}}.should be_true
+            @result.any?{|term| term == {"source_term"=>"delete_logaling", "target_term"=>"てすと1", "note"=>"備考"}}.should be_falsey
+            @result.any?{|term| term == {"source_term"=>"delete_logaling", "target_term"=>"てすと2", "note"=>"備考"}}.should be_falsey
+            @result.any?{|term| term == {"source_term"=>"user_logaling", "target_term"=>"ユーザ1", "note"=>"備考"}}.should be_truthy
+            @result.any?{|term| term == {"source_term"=>"user_logaling", "target_term"=>"ユーザ2", "note"=>"備考"}}.should be_truthy
           end
         end
       end
-------------- next part --------------
An HTML attachment was scrubbed...
下載 



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