Please sign in to comment.
Fix Rails already initialized error (again)
The initial fix expanded the test paths, which would break when distributing from Mac to Linux (/private/tmp instead of /tmp). Now, we utilize the fact that Cucumber checks for RAILS_ROOT to ensure the environment isn't loaded twice (by non-unique paths).
- Loading branch information...
Showing with 4 additions and 1 deletion.
|@@ -95,7 +95,7 @@ def pid|
|- File.expand_path(project_name, File.realpath('/tmp'))|
|+ File.expand_path(project_name, '/tmp')|