[logaling-commit] logaling/logaling-command [master] move command.new to #describe's before

Back to archive index

null+****@clear***** null+****@clear*****
Tue Feb 7 18:37:34 JST 2012


SUZUKI Miho	2012-02-07 18:37:34 +0900 (Tue, 07 Feb 2012)

  New Revision: ea8c4a1c6e57f5b46fb6d97d73544171fa0da34f

  Merged 887a495: Merge pull request #34 from logaling/fix-command-spec

  Log:
    move command.new to #describe's before

  Modified files:
    spec/logaling/command_spec.rb

  Modified: spec/logaling/command_spec.rb (+4 -2)
===================================================================
--- spec/logaling/command_spec.rb    2012-02-06 18:03:11 +0900 (96be62c)
+++ spec/logaling/command_spec.rb    2012-02-07 18:37:34 +0900 (8aa34f3)
@@ -226,9 +226,12 @@ describe Logaling::Command::Application do
   end
 
   describe '#add' do
+    before do
+      command.new('spec', 'en', 'ja')
+    end
+
     context 'with arguments have only bilingual pair' do
       before do
-        command.new('spec', 'en', 'ja')
         command.add("spec", "テスト")
       end
 
@@ -245,7 +248,6 @@ describe Logaling::Command::Application do
 
     context 'with arguments have bilingual pair and note' do
       before do
-        command.new('spec', 'en', 'ja')
         command.add("spec", "テスト", "備考")
       end
 




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