I wonder how can I clear the database before each spec?
At first I thought that I can wrap each spec within a transaction like
but roll it back.
But the problem is that the saved models within that transactions are
So that this is false:
This is pretty unexpected to me.
So my question is how to clean-up the database before each test.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.