History for dmpopidor / test
2017-02-03
@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
fixed a few merge conflicts
briley committed on 2 Feb 2017
@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
@Ray Carrick
merge in changes from origin
Ray Carrick committed on 2 Feb 2017
@Ray Carrick
port of plan creation and editing to new data model
Ray Carrick 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
@briley
fixed references to organisation in guidance_group methods. finished guidance_group unit tests
briley committed on 31 Jan 2017
@briley
removed Fileupload object since its not referenced anymore. removed all of the empty test/unit/helpers files
briley committed on 31 Jan 2017
@briley
finished up answer and note unit tests
briley committed on 31 Jan 2017
@briley
unit tests for notes and answers. addded new validator to check whether the question's template matches the plans template
briley committed on 31 Jan 2017
2017-01-30
@briley
updated some of the plan.rb model to deal with outdated calls to dmptemplate. fixed up answer unit tests and added some validations to Answer
briley committed on 30 Jan 2017
@briley
Moved orcid_id from users table to user_identifiers. Added option_based flag to question_formats. switched Object.const_defined to table_exists checks in db migrations because rails loads references to classes on demand so the objects are likely not defined when the migrations run. safer to check for the underlying table's existence
briley committed on 30 Jan 2017
@briley
Moved orcid_id from users table to user_identifiers. Added option_based flag to question_formats. switched Object.const_defined to table_exists checks in db migrations because rails loads references to classes on demand so the objects are likely not defined when the migrations run. safer to check for the underlying table's existence
briley committed on 30 Jan 2017
2017-01-27
@Brian Riley
started reworking answer unit test
Brian Riley committed on 27 Jan 2017
@Brian Riley
replaced use of fixtures with db/seeds.rb. no point in maintaining both
Brian Riley committed on 27 Jan 2017
@Brian Riley
added new seed file that works with new schema. commented out plans and answers for now though because plan model is unfinished
Brian Riley committed on 27 Jan 2017
2017-01-26
@briley
resolved merge conflicts
briley committed on 26 Jan 2017
2017-01-25
@briley
fixed merge conflicts
briley committed on 25 Jan 2017