Skip to content

Commit

Permalink
[TEST] Improved code in the Text Query integration test
Browse files Browse the repository at this point in the history
Use regular Tire API, not custom RestClient calls...
  • Loading branch information
karmi committed Mar 26, 2012
1 parent d759959 commit 6cde66e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/integration/text_query_test.rb
Expand Up @@ -7,8 +7,10 @@ class QueryStringIntegrationTest < Test::Unit::TestCase

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
Expand Down

0 comments on commit 6cde66e

Please sign in to comment.