Update CRC dataset model and Add tests
Hi @anusha. Please take a look at this merge request. Main points are below:
- Specs from
crc_dataset_spec.rb
all pass (57 examples). - I copied the factory for
crc_dataset.rb
fromrdms/dataset.rb
. I don't think most of this is required for the current testing, but I copied it over anyway. - I copied the spec for
crc_dataset_spec.rb
fromrdms/dataset_spec.rb
. Then added new tests from line 451. You may wish to see the test forcomplex_subject
in particular (line 466).
Thanks
Sagar
Edited by Sagar Pandya