[logaling-commit] logaling/logaling-command [fix-loga-config] change remove_entry_secure to rm_rf

Back to archive index

null+****@clear***** null+****@clear*****
Mon Feb 27 11:25:37 JST 2012


SUZUKI Miho	2012-02-27 11:25:37 +0900 (Mon, 27 Feb 2012)

  New Revision: 3cf4b5c433e6a5edadec37a949d2f665f431dcbb

  Log:
    change remove_entry_secure to rm_rf

  Modified files:
    spec/logaling/command_spec.rb

  Modified: spec/logaling/command_spec.rb (+13 -13)
===================================================================
--- spec/logaling/command_spec.rb    2012-02-27 10:34:54 +0900 (ef8dcb2)
+++ spec/logaling/command_spec.rb    2012-02-27 11:25:37 +0900 (96e0ea6)
@@ -28,7 +28,7 @@ describe Logaling::Command::Application do
   let(:repository) { Logaling::Repository.new(logaling_home) }
 
   before do
-    FileUtils.remove_entry_secure(File.join(logaling_home, 'projects', 'spec'), true)
+    FileUtils.rm_rf(File.join(logaling_home, 'projects', 'spec'))
   end
 
   describe '#new' do
@@ -89,7 +89,7 @@ describe Logaling::Command::Application do
 
     context "when can not find .logaling" do
       before(:all) do
-        FileUtils.remove_entry_secure(logaling_config, true)
+        FileUtils.rm_rf(logaling_config)
         @stdout = capture(:stdout) {command.register}
       end
 
@@ -122,7 +122,7 @@ describe Logaling::Command::Application do
 
     context "when can not find .logaling" do
       before do
-        #FileUtils.remove_entry_secure(logaling_config, true)
+        #FileUtils.rm_rf(logaling_config)
       end
 
       context "and call without option" do
@@ -217,7 +217,7 @@ describe Logaling::Command::Application do
       end
 
       after do
-        FileUtils.remove_entry_secure(global_config, true)
+        FileUtils.rm_rf(global_config)
       end
     end
 
@@ -225,7 +225,7 @@ describe Logaling::Command::Application do
       context 'with argument "target-language"' do
         before do
           command.new('spec', 'en')
-          FileUtils.remove_entry_secure(@logaling_home, true)
+          FileUtils.rm_rf(@logaling_home)
           command.config("target-language", "fr")
         end
 
@@ -238,7 +238,7 @@ describe Logaling::Command::Application do
         before do
           command.options = base_options.merge("global" => true)
           command.new('spec', 'en')
-          FileUtils.remove_entry_secure(@logaling_home, true)
+          FileUtils.rm_rf(@logaling_home)
           command.config("target-language", "ja")
         end
 
@@ -249,7 +249,7 @@ describe Logaling::Command::Application do
         end
 
         after do
-          FileUtils.remove_entry_secure(global_config, true)
+          FileUtils.rm_rf(global_config)
         end
       end
     end
@@ -314,7 +314,7 @@ describe Logaling::Command::Application do
       end
 
       after do
-        FileUtils.remove_entry_secure(global_config, true)
+        FileUtils.rm_rf(global_config)
       end
     end
   end
@@ -426,8 +426,8 @@ describe Logaling::Command::Application do
 
         context "and called with '--force=true'" do
           before do
-            FileUtils.remove_entry_secure(logaling_config, true)
-            FileUtils.remove_entry_secure(File.join(logaling_home, 'projects', 'spec'), true)
+            FileUtils.rm_rf(logaling_config)
+            FileUtils.rm_rf(File.join(logaling_home, 'projects', 'spec'))
             command.options = base_options.merge("force" => true)
             command.new('spec', 'en', 'ja')
             command.add('term', '用語1', '備考')
@@ -470,7 +470,7 @@ describe Logaling::Command::Application do
     end
 
     after do
-      FileUtils.remove_entry_secure(csv_path, true)
+      FileUtils.rm_rf(csv_path)
     end
   end
 
@@ -505,7 +505,7 @@ describe Logaling::Command::Application do
   end
 
   after do
-    FileUtils.remove_entry_secure(logaling_config, true)
-    FileUtils.remove_entry_secure(File.join(logaling_home, 'projects', 'spec'), true)
+    FileUtils.rm_rf(logaling_config)
+    FileUtils.rm_rf(File.join(logaling_home, 'projects', 'spec'))
   end
 end




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