title: How to turn off ActionMailer in test environment?
body: <p>I'm receiving real emails when I run my tests with RSpec. 
  I've made everything as it was written in <a href="https://stackoverflow.com/questions/10961982/actionmailer-sending-real-emails-in-test-mode-how-to-turn-off/10970085#10970085">this question</a> (I've add change my environment config to do not send emails, but it no make any effect at all. I'm thinking that my setting are replaced somewhere but I can't find where. </p>
  
  <p>Here is my config for test env (<strong>config/enviroments/test.rb</strong>)</p>
  
  <pre><code>Myapp::Application.configure do
    config.action_mailer.delivery_method = :test
    config.action_mailer.perform_deliveries = false
  end
  </code></pre>
  
  <p>here are my <strong>mailers</strong>: </p>
  
  <pre><code>class ApplicationMailer &lt; ActionMailer::Base
    default from: 'hello@myapp.com'
    layout 'mailer'
  
    ADMIN_EMAIL = 'admin@myapp.com'
  end
  
  class AdminMailer &lt; ApplicationMailer
    default to: "#{ADMIN_EMAIL}"
  
    def mandrill_client
      @mandrill_client ||= Mandrill::API.new MANDRILL_API_KEY
    end
  
    def new_user(user)
      #set required params
      mandrill_client.messages.send_template template_name, template_content, message
    end
  
  end
  </code></pre>
  
  <p>It seems that I've missed something very obvious. However I need your help in breaking it up.</p>