aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-08-01 20:41:02 +0100
committerRobin Houston <robin@lenny.robin>2011-08-01 21:03:12 +0100
commit731f7901cd7befa2d658f64417feec535cd032b4 (patch)
tree830c0d289dda862c2bd36acf611f2bb807a663f3
parent38029517f95d42539dad12db748b789574a8207b (diff)
Fix broken check for test environment
The condition that was supposed to check for the "test" environment was accidentally imposing the test environment. Closes #102.
-rw-r--r--app/models/raw_email.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/raw_email.rb b/app/models/raw_email.rb
index 1d85cc7d9..eb36053c1 100644
--- a/app/models/raw_email.rb
+++ b/app/models/raw_email.rb
@@ -29,7 +29,7 @@ class RawEmail < ActiveRecord::Base
def directory
request_id = self.incoming_message.info_request.id.to_s
- if ENV["RAILS_ENV"] = "test"
+ if ENV["RAILS_ENV"] == "test"
return 'files/raw_email_test'
else
return File.join(MySociety::Config.get('RAW_EMAILS_LOCATION',