Skip to content

Commit 03a6634

Browse files
committed
live specs: Topic cleanup
1 parent 31dde34 commit 03a6634

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@ jobs:
5353
run: |
5454
bundle install
5555
bundle exec rake clean_live set_ci_credentials spec:live
56+
bundle exec rake clean_live
5657
bundle exec rspec spec/live --only-failures

spec/live/topic_spec.rb

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

3-
describe ZendeskAPI::Topic do
3+
RSpec.describe ZendeskAPI::Topic do
4+
before :all do
5+
VCR.configure do |c|
6+
@previous_allow_http_connections = c.allow_http_connections_when_no_cassette?
7+
c.allow_http_connections_when_no_cassette = true
8+
end
9+
client.topics.fetch!.map(&:destroy!)
10+
ensure
11+
VCR.configure do |c|
12+
c.allow_http_connections_when_no_cassette = @previous_allow_http_connections
13+
end
14+
end
15+
416
def valid_attributes
517
{
618
:name => "My Topic",

0 commit comments

Comments
 (0)