Fixing Edition factory trait :with_document

This commit causes documents built by an edition factory with the
:with_document trait to correctly set the slug and document type on
the document.

The edition factories in general look like a good candidate for some
serious yak shaving, but this will have to do for now.
disable_database_queries stubs instead of expects

With this set up as an expectation, I was getting some extremely
difficult failures to diagnose. I figure this method's intent
is for test suite performance, not to actually ensure that the DB
is not hit.