diff --git a/test/integration/text_query_test.rb b/test/integration/text_query_test.rb
index <HASH>..<HASH> 100644
--- a/test/integration/text_query_test.rb
+++ b/test/integration/text_query_test.rb
@@ -7,8 +7,10 @@ module Tire
 
     context "Text query" do
       setup do
-        ::RestClient.put "#{URL}/articles-test/article/plus-one", {:title => "+1 !!!"}.to_json
-        ::RestClient.post "#{URL}/articles-test/_refresh", ''
+        Tire.index('articles-test') do
+          store :type => 'article', :title => '+1 !!!'
+          refresh
+        end
       end
 
       should "find article by title" do
[TEST] Improved code in the Text Query integration test

Use regular Tire API, not custom RestClient calls...