[COOK-3880] replace "raise" with "fail"
Merge pull request #97 from juliandunn/COOK-3880

[COOK-3880] Replace "raise" with "fail" to fix Rubocop error causing CI failure