Skip to content

Commit 2cf49a1

Browse files
committed
Maintenance: Make tests more tolerant if the 'removed' state is missing.
1 parent 61907cc commit 2cf49a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/zammad_api/resources/ticket_state_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
expect(local_ticket_state.class).to eq(ZammadAPI::Resources::TicketState)
157157
count += 1
158158
}
159-
expect(count).to eq(8)
159+
expect(count).to be >= 7
160160

161161
count = 0
162162
ticket_states = client.ticket_state.all
@@ -174,7 +174,7 @@
174174
expect(local_ticket_state.class).to eq(ZammadAPI::Resources::TicketState)
175175
count += 1
176176
}
177-
expect(count).to eq(8)
177+
expect(count).to be >= 7
178178
end
179179

180180
it 'destroy' do

0 commit comments

Comments
 (0)