Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Commit

Permalink
Change exception used in test for a generic Exception for PG::Error i…
Browse files Browse the repository at this point in the history
…s not available in JRuby
  • Loading branch information
diogob committed Aug 3, 2016
1 parent fea79d4 commit ae69b16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/carrierwave/storage/adapters/pg_connection.rb
Expand Up @@ -6,7 +6,7 @@ module PGConnection
def identifier
@oid ||= connection.lo_creat
end

def read
@uploader.model.transaction do
lo = connection.lo_open(identifier)
Expand Down
2 changes: 1 addition & 1 deletion spec/storage/file_spec.rb
Expand Up @@ -20,7 +20,7 @@
file.write(tempfile)
file.delete
}
expect { file.read }.to raise_error(PG::Error)
expect { file.read }.to raise_error(Exception)
end
end

Expand Down

0 comments on commit ae69b16

Please sign in to comment.