Skip to content

Instantly share code, notes, and snippets.

@selmanj
Created October 21, 2016 23:16
Show Gist options
  • Save selmanj/8dcf78bd33acd7e3e8985edf04f3924a to your computer and use it in GitHub Desktop.
Save selmanj/8dcf78bd33acd7e3e8985edf04f3924a to your computer and use it in GitHub Desktop.
# Ensure any resources with this prefix are removed
Minitest.after_run do
@@client.list_topics[:body]["topics"]\
.map { |t| t["name"] }\
.select { |t| t.start_with?(TOPIC_RESOURCE_PREFIX) }\
.each { |t| @@client.delete_topic(t) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment