curationexperts / mahonia

Oregon Health & Science Repository
Apache License 2.0
6 stars 0 forks source link

Add integration tests for importer task #247

Closed no-reply closed 6 years ago

no-reply commented 6 years ago

An integration test for importing Etds via the rake task is added. Validation for invalid CSV is also included.

Rake task tests are supported by an RSpec shared context which sets up the task. The convention is that rake tasks have a top_level_description of the task name, so a rubocop rule preventing this is disabled for the spec/tasks directory.