Ask Your Question

How to write rspec test for profiles?

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

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

1 Answer

Sort by ยป oldest newest most voted

answered 2014-06-24 16:21:30 -0600

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-06-24 14:58:54 -0600

Seen: 781 times

Last updated: Jun 24 '14