[logaling-commit] logaling/logaling-command [master] fix spec of Command#new

Back to archive index

null+****@clear***** null+****@clear*****
Wed Feb 8 10:41:32 JST 2012


SUZUKI Miho	2012-02-08 10:41:32 +0900 (Wed, 08 Feb 2012)

  New Revision: 1ece8bb2ac665fd7a6640288a1b842f374accf2d

  Merged b1443be: Merge pull request #39 from logaling/fix-spec

  Log:
    fix spec of Command#new

  Modified files:
    spec/logaling/command_spec.rb

  Modified: spec/logaling/command_spec.rb (+2 -2)
===================================================================
--- spec/logaling/command_spec.rb    2012-02-08 08:46:40 +0900 (8aa34f3)
+++ spec/logaling/command_spec.rb    2012-02-08 10:41:32 +0900 (d3c7fe6)
@@ -37,12 +37,12 @@ describe Logaling::Command::Application do
 
     context 'when .logaling already exists' do
       before do
-        FileUtils.mkdir_p(Logaling::Command::LOGALING_CONFIG)
+        command.new('spec', 'en', 'ja')
         @stdout = capture(:stdout) { command.new('spec', 'en', 'ja') }
       end
 
       it 'print message \"<.logaling path> already exists.\"' do
-        @stdout.should == "#{Logaling::Command::LOGALING_CONFIG} already exists.\n"
+        @stdout.should include "#{Logaling::Command::LOGALING_CONFIG} already exists.\n"
       end
     end
 




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