[logaling-commit] logaling/logaling-command [master] Add spec for #36430893

Zurück zum Archiv-Index

SUZUKI Miho null+****@clear*****
Fri Sep 21 11:00:06 JST 2012


SUZUKI Miho	2012-09-21 11:00:06 +0900 (Fri, 21 Sep 2012)

  New Revision: 4fbad3182e85424c5ebaa991861015937e55f0bc
  https://github.com/logaling/logaling-command/commit/4fbad3182e85424c5ebaa991861015937e55f0bc

  Merged d2abd67: Merge pull request #82 from logaling/fix-problem-when-updating-term

  Log:
    Add spec for #36430893

  Modified files:
    spec/logaling/glossary_spec.rb

  Modified: spec/logaling/glossary_spec.rb (+9 -0)
===================================================================
--- spec/logaling/glossary_spec.rb    2012-09-21 10:17:53 +0900 (a629ba9)
+++ spec/logaling/glossary_spec.rb    2012-09-21 11:00:06 +0900 (749093b)
@@ -89,7 +89,16 @@ module Logaling
           term = yaml.index({"source_term"=>"user", "target_term"=>"ユーザ", "note"=>""})
           term.should_not be_nil
         end
+      end
+
+      context 'same [source-term, taget-term] pair can not exist' do
+        before do
+          glossary.add("user", "ゆーざー", "")
+        end
 
+        it {
+          -> { glossary.update("user", "ゆーざー", "ユーザ", "") }.should raise_error(Logaling::TermError)
+        }
       end
     end
 
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the logaling-commit mailing list
Zurück zum Archiv-Index