Skip to content

Commit 93fbc68

Browse files
committed
raise RuntimeError instead of Exception
1 parent ca4979a commit 93fbc68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/webmachine/decision/fsm_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
subject { described_class.new(resource, request, response) }
77

88
describe 'handling of exceptions from decision methods' do
9-
let(:exception) { Exception.new }
9+
let(:exception) { RuntimeError.new }
1010

1111
before do
1212
allow(subject).to receive(Webmachine::Decision::Flow::START) { raise exception }
@@ -24,7 +24,7 @@
2424
end
2525

2626
describe 'handling of exceptions from resource.handle_exception' do
27-
let(:exception) { Exception.new('an error message') }
27+
let(:exception) { RuntimeError.new('an error message') }
2828

2929
before do
3030
allow(subject).to receive(Webmachine::Decision::Flow::START) { raise }
@@ -50,7 +50,7 @@
5050
end
5151

5252
describe 'handling of exceptions from resource.finish_request' do
53-
let(:exception) { Exception.new }
53+
let(:exception) { RuntimeError.new }
5454

5555
before do
5656
allow(resource).to receive(:finish_request) { raise exception }

0 commit comments

Comments
 (0)