mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 03:12:10 +08:00

Active Record's `to_sql` method seems to return an empty string instead of the expected SQL query when called on a query involving an unpersisted model instance. This replaces the admin `user` used in the specs with a persisted instance.