thoughtbot/shoulda-matchers — pull request #34 by tmilewski (2011-11-15 22:17:07+00:00)
Title: Serialize ActiveRecord matcher

Usage:
it { should serialize(:attr) }
it { should serialize(:attr).as(Hash) }
it { should serialize(:attr).as(Array) }

Specs included. All passing.