Skip to content

Commit b3cfa21

Browse files
committed
Fix two spec warnings when using expec to raise_error without a matcher
1 parent de4e1bd commit b3cfa21

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

spec/em/em_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
EM.stop_event_loop
6464
end
6565
end
66-
}.to raise_error
66+
}.to raise_error('some error')
6767
end
6868

6969
context 'when an exception is raised by the client' do

spec/mysql2/statement_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040

4141
it "should raise an exception without a block" do
4242
statement = @client.prepare 'SELECT 1'
43-
statement.execute
44-
expect { statement.each }.to raise_error
43+
expect { statement.execute.each }.to raise_error(LocalJumpError)
4544
end
4645

4746
it "should tell us the result count" do

0 commit comments

Comments
 (0)