[logaling-commit] logaling/logaling-command [master] Use be_exist when check if file exists

Zurück zum Archiv-Index

null+****@clear***** null+****@clear*****
Thu Feb 16 19:48:08 JST 2012


SHIMADA Koji	2012-02-16 19:48:08 +0900 (Thu, 16 Feb 2012)

  New Revision: ebe5d16be477f39e2f46871d0092a9429d8baf3d

  Log:
    Use be_exist when check if file exists

  Modified files:
    spec/logaling/command_spec.rb

  Modified: spec/logaling/command_spec.rb (+6 -6)
===================================================================
--- spec/logaling/command_spec.rb    2012-02-16 19:41:47 +0900 (1bb6893)
+++ spec/logaling/command_spec.rb    2012-02-16 19:48:08 +0900 (adc7d10)
@@ -53,11 +53,11 @@ describe Logaling::Command::Application do
         end
 
         it 'should create .logaling' do
-          File.exist?(logaling_config).should be_true
+          File.should be_exist(logaling_config)
         end
 
         it 'should register .logaling as project' do
-          File.exist?(target_project_path).should be_true
+          File.should be_exist(target_project_path)
           Dir[File.join(logaling_home, "projects", "*")].size.should == @project_counts + 1
         end
       end
@@ -69,11 +69,11 @@ describe Logaling::Command::Application do
         end
 
         it 'should create .logaling' do
-          File.exist?(logaling_config).should be_true
+          File.should be_exist(logaling_config)
         end
 
         it 'should not register .logaling as project' do
-          File.exist?(target_project_path).should be_false
+          File.should_not be_exist(target_project_path)
           Dir[File.join(logaling_home, "projects", "*")].size.should == @project_counts
         end
       end
@@ -108,7 +108,7 @@ describe Logaling::Command::Application do
       end
 
       it 'register .logaling as project' do
-        File.exist?(target_project_path).should be_true
+        File.should be_exist(target_project_path)
         Dir[File.join(logaling_home, "projects", "*")].size.should == @project_counts + 1
       end
     end
@@ -155,7 +155,7 @@ describe Logaling::Command::Application do
         end
 
         it 'unregister .logaling' do
-          File.exist?(target_project_path).should be_false
+          File.should_not be_exist(target_project_path)
           Dir[File.join(logaling_home, "projects", "*")].size.should == @project_counts
         end
       end




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