Commit 7479b1e6 authored by allison.browne's avatar allison.browne

Add spec that covers being able to add many removed zoom meetings

parent 974d0214
......@@ -95,6 +95,12 @@ describe ZoomMeeting do
end
end
shared_examples 'can remove meetings' do
it 'can remove Zoom meetings' do
create(:zoom_meeting, :removed_from_issue, issue: issue)
end
end
shared_examples 'cannot add meetings' do
it 'fails to add a new meeting' do
expect do
......@@ -134,5 +140,13 @@ describe ZoomMeeting do
it_behaves_like 'can add meetings'
end
context 'when second meeting is removed' do
before do
create(:zoom_meeting, :removed_from_issue, issue: issue)
end
it_behaves_like 'can remove meetings'
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment