andrequina/bonnie — pull request #5 by mwptrsn (2014-08-14 18:05:15+00:00)
Title: Do not scoop and filter patients on export for the portfolio role

I've adjusted the export method in the patients_controller to pass in an empty array to the HTML exporter if the user has the portfolio bit set. This necessitated the creation of a new fixture and an update to the user controller tests.

Looking at the show template called by the exporter(https://github.com/projectcypress/health-data-standards/blob/master/templates/html/show.html.erb), it looks like there's an if statement that creates a toggle if the length of methods is zero, so I used the existence of that as a test. I added a corresponding check to make sure it doesn't exist in the exports from the standard user (the original test).