Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

RSpec: expect exact exception to avoid RSpec warnings #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/pg_tester_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

describe '#initialize' do
context 'with initdb_path as emtpy' do
it 'should raise an error' do
expect { described_class.new({:initdb_path => ""}) }.to raise_error
it 'raises a RuntimeError' do
expect { described_class.new({:initdb_path => ""}) }.to raise_error(RuntimeError)
end
end

Expand Down