Skip to content

Commit

Permalink
Maintenance: Make tests more tolerant if the 'removed' state is missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgruner committed Nov 29, 2023
1 parent 61907cc commit 2cf49a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/zammad_api/resources/ticket_state_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
expect(local_ticket_state.class).to eq(ZammadAPI::Resources::TicketState)
count += 1
}
expect(count).to eq(8)
expect(count).to be >= 7

count = 0
ticket_states = client.ticket_state.all
Expand All @@ -174,7 +174,7 @@
expect(local_ticket_state.class).to eq(ZammadAPI::Resources::TicketState)
count += 1
}
expect(count).to eq(8)
expect(count).to be >= 7
end

it 'destroy' do
Expand Down

0 comments on commit 2cf49a1

Please sign in to comment.