How do I get shoulda to recognise my polymorphic association

后端 未结 1 790
温柔的废话
温柔的废话 2021-01-25 13:38

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

1条回答
  •  执笔经年
    2021-01-25 13:44

    Run migrations on your test database!

    ...a mistake I have been caught by many times.

    (the tick should got to Peter Alfvin)

    0 讨论(0)
提交回复
热议问题