noosfero | Add rake to activate all available plugins (#573)
Rodrigo Souto
gitlab at gitlab.com
Tue May 19 11:43:48 BRT 2015
New comment for Merge Request 573
https://gitlab.com/noosfero/noosfero/merge_requests/573#note_1252566
Rodrigo Souto
Hi Gabriela,
The job of this method `Environment#enable_all_plugins` is to enable the available plugins. If you enable them before you run the method you're not actually testing it. Instead of enabling the plugins like you did, you should stub `Noosfero::Plugin.available_plugins` with some plugins and ensure that they are enabled after you run `env.enable_all_plugins`.
Also fix the tests names changing 'enabled' by 'available'.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150519/37e627cb/attachment.html>
More information about the Noosfero-dev
mailing list