uploadcare / uploadcare-ruby

Ruby API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
https://uploadcare.com
MIT License
39 stars 28 forks source link

Specify which errors must be raised in specs #46

Closed lidimayra closed 6 years ago

lidimayra commented 6 years ago

When testing errors raising, we must specify expected error name in order to prevent a potential false positive (since specs could raise a different error and then pass for an unexpected reason).

RSpec was launching a warning due to this. These changes remove the warning.

Before: raise_error_warning01

After: raise_error_warning02

vizvamitra commented 6 years ago

No more warnings in specs :tada:

@lidimayra, ⊂( ´ ▽ ` )⊃