Friday 12 July 2013

Rspec route testing with Mongoid

This may be obvious to others, but I have just been having a lot of frustration trying to test routes with a rails application written using Mongoid.

The problem was that the id of the object being created is not a string. The id therefore needs to converted to a string to make it work.


No comments:

Post a Comment