Skip to content

Commit 37ceacd

Browse files
Another fix
1 parent a137835 commit 37ceacd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/uploader_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,9 @@
627627
end
628628

629629
it "should fail if timeout is reached" do
630-
expect { Cloudinary::Uploader.upload(Pathname.new(TEST_IMG), :tags => [TEST_TAG, TIMESTAMP_TAG]) }.to raise_error(Faraday::ConnectionFailed).or raise_error(Faraday::TimeoutError)
630+
expect { Cloudinary::Uploader.upload(Pathname.new(TEST_IMG), :tags => [TEST_TAG, TIMESTAMP_TAG]) }.to raise_error { |error|
631+
expect([Faraday::ConnectionFailed, Faraday::TimeoutError]).to include(error.class)
632+
}
631633
end
632634

633635
it "should allow passing nil value" do

0 commit comments

Comments
 (0)