diff --git a/lib/mactag/ctags.rb b/lib/mactag/ctags.rb
index <HASH>..<HASH> 100644
--- a/lib/mactag/ctags.rb
+++ b/lib/mactag/ctags.rb
@@ -14,8 +14,19 @@ module Mactag
 
       binary.gsub!('{OUTPUT}', @output)
       binary.gsub!('{INPUT}', @input)
-
-      system "cd #{Rails.root} && #{binary}"
+      
+      exec(binary)
+    end
+    
+    
+    private
+    
+    def exec(binary)
+      system command(binary)
+    end
+    
+    def command(binary)
+      "cd #{Rails.root} && #{binary}"
     end
   end
 end
Separate this functionality for easier testing.