rails/rails — pull request #10042 by choudhuryanupam (2013-04-02 06:25:52+00:00)
Title: Added missing assert

Added missing assert in the test case and refactored private method to avoid repetition.