From 86e06aeb0878dcd46fd635d620656748255d3f67 Mon Sep 17 00:00:00 2001 From: Colin Kelley Date: Thu, 27 Aug 2020 11:17:35 -0700 Subject: [PATCH] issue #481: fix duplicate start test to not expect AlreadyStarted to be raised --- spec/lib/listen/event/loop_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/lib/listen/event/loop_spec.rb b/spec/lib/listen/event/loop_spec.rb index b262036e..c0094261 100644 --- a/spec/lib/listen/event/loop_spec.rb +++ b/spec/lib/listen/event/loop_spec.rb @@ -64,8 +64,8 @@ end context 'when start is called again' do - it 'raises AlreadyStarted' do - expect { subject.start }.to raise_exception(Listen::Event::Loop::Error::AlreadyStarted) + it 'returns silently' do + expect { subject.start }.to_not raise_exception end end end