How to write rspec test for profiles?

asked 2014-06-24 14:58:54 -0500

xaeth gravatar image

We are following the Roles & Profiles concept and I'm about to make some significant changes to how a set of our profiles run, but the end result should not change. Since the profile itself isn't doing anything, the classes it is calling are, how would you test that? What if the profile is doing some direct manipulation, say with an augeasprovider? How would that be done?

edit retag flag offensive close merge delete


The classes that the profile may be using should have there own tests. You can write a test for the profile class by making use of the matchers `include_class` and such, as well as write tests for any resources explicitly declared in the profile.

ptierno gravatar imageptierno ( 2014-06-24 16:21:30 -0500 )edit