May 12, 2015 by Daniel P. Clark

Fake a SMTP Server with Python for Rails Testing

So I’ve been in the process of writing an integration test to verify the flow of registration through some unique conditions.  One thing I ran into while writing my Rails test was this error. Connection refused – connect(2) for nil port 25 After looking around at documentation on what to do for testing it seemed…

Continue Reading »

April 30, 2015 by Daniel P. Clark

Have problems testing methods that query ActiveRecord?

Sometimes you’ll run into a problem that won’t reveal an answer.  I ran into a problem I had come across before in that past to which I knew I hadn’t really solved.  I have a custom method that looks up an ActiveRecord query and makes a change.  But both times I’ve tried to test the…

Continue Reading »