Skip to content

Commit 0ece524

Browse files
committed
Make result error message expectation Ruby-version agnostic
1 parent 911aca0 commit 0ece524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/uploadcare/result_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@
5454
error = { error: 'boom' }
5555
result = described_class.failure(error)
5656

57-
expect { result.value! }.to raise_error(RuntimeError, /\{error: "boom"\}/)
57+
expect { result.value! }.to raise_error(RuntimeError, /\{.*error.*boom.*\}/)
5858
end
5959
end

0 commit comments

Comments
 (0)