An almost indentical question to this has been asked before (How to use shoulda matchers to test a polymorphic assoication?) but there was no definitive answer that helps me, so
Run migrations on your test database!
...a mistake I have been caught by many times.
(the tick should got to Peter Alfvin)