Skip to content

Commit

Permalink
[TEST] Clean up indices created by integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karmi committed May 3, 2012
1 parent e5a0a1c commit 6f09e69
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@ def setup
end

def teardown
::RestClient.delete "#{URL}/articles-test" rescue nil
%w[
articles-test
active_record_articles
active_model_article_with_custom_as_serializations
active_record_class_with_tire_methods
mongoid_articles
mongoid_class_with_tire_methods
supermodel_articles
dynamic_index
model_with_nested_documents ].each do |index|
::RestClient.delete "#{URL}/#{index}" rescue nil
end
end
end

0 comments on commit 6f09e69

Please sign in to comment.