We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 831ecaa commit 1476245Copy full SHA for 1476245
spec/live/topic_spec.rb
@@ -1,12 +1,13 @@
1
require 'core/spec_helper'
2
3
RSpec.describe ZendeskAPI::Topic do
4
+ # Cleanup topics (:delete_after doesn't work here)
5
before :all do
6
VCR.configure do |c|
7
@previous_allow_http_connections = c.allow_http_connections_when_no_cassette?
8
c.allow_http_connections_when_no_cassette = true
9
end
- client.topics.fetch!.map(&:destroy!)
10
+ client.topics.fetch!.reject { |t| t == @topic }.map(&:destroy!)
11
ensure
12
13
c.allow_http_connections_when_no_cassette = @previous_allow_http_connections
0 commit comments