datacite / lupo

DataCite REST API
https://api.datacite.org
MIT License
11 stars 8 forks source link

Rework ability_spec.rb so it doesn't spill over into other specs #1245

Closed jrhoads closed 2 weeks ago

jrhoads commented 2 weeks ago

Purpose

Isolate ability spec so that it does not affect other specs in the suite.

Approach

Remove before(:all) and after(:all) blocks and replace them with localized let statements that adhere to transactions and auto-delete whenever the individual test is finished.

Many tests have been consolidated in to larger blocks to limit the number of times a DB call must be made.

Types of changes

Reviewer, please remember our guidelines: