Testing administrate_me with rspec shared behaviours and matchers

Have you met administrate_me? (hint: The README file show’s you how to setup a rails app using administrate_me from from scratch) It’s Insignia’s plugin to handle our backend in the most agile and efficient way. You can see a simple administrate_me screenshot to check out what it looks like.

So, the news are that in a few hacking sessions we managed to create some rpsec shared behaviours and matchers to help you test your controllers that use administrate_me.

On this files you can see the actual code of the specs, but most important, clear examples about how to use them:

administrate_me Shared Behaviours: You can use them to check that your controllers are fully functional. It comes in two flavors: ‘basic administrate_me’ and ‘basic administrate_me with parent’ to test child controllers.

administrate_me Matchers: For now you have just two matchers to check for the order set and the fields on which the search is allowed. There are more matchers to come.

Now you dont have excuse for not testing your controllers!

0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment