Skip to content

Commit 1476245

Browse files
committed
live specs: Topic cleanup
1 parent 831ecaa commit 1476245

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/live/topic_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
require 'core/spec_helper'
22

33
RSpec.describe ZendeskAPI::Topic do
4+
# Cleanup topics (:delete_after doesn't work here)
45
before :all do
56
VCR.configure do |c|
67
@previous_allow_http_connections = c.allow_http_connections_when_no_cassette?
78
c.allow_http_connections_when_no_cassette = true
89
end
9-
client.topics.fetch!.map(&:destroy!)
10+
client.topics.fetch!.reject { |t| t == @topic }.map(&:destroy!)
1011
ensure
1112
VCR.configure do |c|
1213
c.allow_http_connections_when_no_cassette = @previous_allow_http_connections

0 commit comments

Comments
 (0)