[logaling-commit] logaling/logaling-command [master] add specs about updating note for Glossary#update

Back to archive index

null+****@clear***** null+****@clear*****
Sun Jan 15 10:06:23 JST 2012


KITAITI Makoto	2012-01-15 10:06:23 +0900 (Sun, 15 Jan 2012)

  New Revision: c3148385984bbb1d3192687788968306a1ea023a

  Merged 8f8133b: Merge pull request #16 from KitaitiMakoto/improve-update-note-only

  Log:
    add specs about updating note for Glossary#update

  Modified files:
    spec/logaling/glossary_spec.rb

  Modified: spec/logaling/glossary_spec.rb (+12 -0)
===================================================================
--- spec/logaling/glossary_spec.rb    2012-01-10 10:15:40 +0900 (33d3ca8)
+++ spec/logaling/glossary_spec.rb    2012-01-15 10:06:23 +0900 (647e826)
@@ -88,6 +88,18 @@ module Logaling
           -> { glossary.update("user", "ユー", "ユーザー", "やっぱりユーザー") }.should raise_error(Logaling::TermError)
         }
       end
+
+      context 'with note arguments show exisiting bilingual pair and note ' do
+        it {
+          -> { glossary.update("user", "ユーザ", "ユーザ", "ユーザーではない") }.should raise_error(Logaling::TermError)
+        }
+      end
+
+      context 'with note arguments show existing bilingual pair and different note' do
+        it {
+          -> { glossary.update("user", "ユーザ", "ユーザ", "最後の音引きはいらない") }.should_not raise_error(Logaling::TermError)
+        }
+      end
     end
 
     describe '#delete' do




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