Assert the mysql user and database

I’m writing a lwrp for a php app using the test-kitchen, berkshelf and minitest-chef-handler

Here is the example spec I’m using

But one thing I’m confused about is how to assert the mysql user is created with privileges on the particular database.
The example doesn’t have such assertion. I am using the database cookbook’s lwrp to create db user and database.

How do I test it?

~ Sachin Sagar Rai
Ruby on Rails Developer (
Sent with Sparrow (