History for dmpopidor / test / unit
2017-03-15
@briley
commented out assertions in unit tests for Answers, Phase and Plans and left notes for how to fix DMPRoadmap/roadmap#170
briley committed on 15 Mar 2017
@briley
removed references to 'slug' in the unit tests since we removed friendly_id from the models
briley committed on 15 Mar 2017
@briley
commented out failing Answer unit tests. validations that were introduced prevent the current controller from saving. revisit when working on DMPRoadmap/roadmap#170
briley committed on 15 Mar 2017
2017-02-09
@briley
finalized helper tests. additional tweaks to Plan tests
briley committed on 9 Feb 2017
@briley
added settings::plan test
briley committed on 9 Feb 2017
2017-02-08
@briley
updted some stale references to Project and Dmptemplate. built more unit tests for Plan methods. Commented out a lot of methods that appear to be unused
briley committed on 8 Feb 2017
@briley
added check to migration to see if new_plan table exists prior to attempt to create a new NewPlan model
briley committed on 8 Feb 2017
@briley
removed NewPlan, AdminUser models. Updated API base controller to check auth via token type and org
briley committed on 8 Feb 2017
@briley
removed old Ability model which was used by the CanCan gem. added some more test coverage for Org and User
briley committed on 8 Feb 2017
@briley
filled in test coverage gaps. Removed duplicate User.can_grant_api_to_orgs? method
briley committed on 8 Feb 2017
@briley
some cleanup of irrelevant objects (e.g. removal of remaining OrganisationType)
briley committed on 8 Feb 2017
2017-02-07
@briley
removed references to organisation_id in several models and replaced with .org.id
briley committed on 7 Feb 2017
@briley
added some missing unit tests. fixed typo on Template.has_customisations? method
briley committed on 7 Feb 2017
@briley
renamed projects_helper to plans_helper. moved template.settings tests to settings:template_test
briley committed on 7 Feb 2017
2017-02-03
@Brian Riley
fixed User.name test due to new param added to method
Brian Riley committed on 3 Feb 2017
@Brian Riley
updated generic deep copy test to check for uniqueness of excluded attributes (e.g. id, slug, dates, etc.). Fixed typo in Question.deep_copy. Added calls to deep_copy test for template, phase and section
Brian Riley committed on 3 Feb 2017
@Brian Riley
removed old references to the Amoeba gem which was used to clone models. Fixed typo in Question.deep_copy. Added generic test for deep_copy methods.
Brian Riley committed on 3 Feb 2017
2017-02-02
@briley
added theme unit tests and started cleanup of remaining existing tests
briley committed on 2 Feb 2017
@briley
added suggested_answer unit tests and started on template unit tests
briley committed on 2 Feb 2017
@briley
added check to role that sets access by default. added unit tests for section
briley committed on 2 Feb 2017
@briley
removed 'self.save' from the Role access_level getter and setter. Shouldn't force a save there (especially in a getter). Verified that controller calls update/save after changing the value
briley committed on 2 Feb 2017
@briley
added validations to role and unit tests
briley committed on 2 Feb 2017
2017-02-01
@briley
removed region_group (and underlying table) and replaced with has_and_belongs_to_many relationship on Region so that we can do region.super_region and region.sub_regions. Added unit tests for Region
briley committed on 1 Feb 2017
@briley
added unit tests for question. removed unused methods from question. fixed guidance_for_question method so that it does not require us to pass in itself (was qustion.guidance_by_question(question, org) - now question.guidance_for_org(org)) and updated template that calls method accordingly
briley committed on 1 Feb 2017
2017-01-31
@briley
added initial unit test for plans. will hold off on finishing
briley committed on 31 Jan 2017
@briley
fixed unit tests for phases
briley committed on 31 Jan 2017
@briley
uncommented out the email validator. added org unit tests.
briley committed on 31 Jan 2017
@briley
finished up unit tests for question_option
briley committed on 31 Jan 2017
@briley
fixed language tests
briley committed on 31 Jan 2017
@briley
Added a managing org and funder scope to Org. Updated methods on Guidance and guidanceTest to work with new schema. Added guidance and guidance_group tests
briley committed on 31 Jan 2017