test/epom/site_test.rb in epom-0.10.9 vs test/epom/site_test.rb in epom-0.10.10

- old
+ new

@@ -155,7 +155,16 @@ # response = Epom::Site.update_country_pricing(url_params, body_params) # assert_not_instance_of Fixnum, response # end + test 'garbage_collector' do + if Epom.config.epom_server == 'https://n29.epom.com/' + sites = Epom::Site.get_sites({}) + sites.each do |site| + Epom::Site.delete_site({siteId: site['id']}) unless site['id'] == ENV['site_id'].to_i + end + end + end + define_get_tests_auto(Epom::Site) end