Skip to content

Commit

Permalink
@cleanup Messages running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroig authored and angelf committed Jan 7, 2011
1 parent bf33804 commit 92bf7ab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 19 deletions.
4 changes: 1 addition & 3 deletions test/indexed_content_test.rb
Expand Up @@ -17,12 +17,10 @@ def indexed_json_document

def foo
"FOO!"
end
end
end

def test_indexed_content
puts 'indexing'

User.delete_index
User.delete_all

Expand Down
1 change: 0 additions & 1 deletion test/mappings_test.rb
Expand Up @@ -15,7 +15,6 @@ class User < ActiveRecord::Base
end

def test_not_analyzed_property
puts 'indexing'

User.delete_all
User.delete_index
Expand Down
15 changes: 7 additions & 8 deletions test/nrt_enqueue_test.rb
Expand Up @@ -67,15 +67,14 @@ def test_document_deletes
Resque.run!
User.refresh_index

puts "TOTAL: " + User.search("*").inspect
puts "TOTAL: " + User.search("*").total_entries.to_s

#puts "TOTAL: " + User.search("*").inspect
#puts "TOTAL: " + User.search("*").total_entries.to_s
assert_equal User.search("*").total_entries, 5

@tim.destroy
User.refresh_index
puts "TOTAL POST DESTROY: " + User.search("*").total_entries.to_s

#puts "TOTAL POST DESTROY: " + User.search("*").total_entries.to_s
assert_equal User.search("*").total_entries, 5

# but when we run the Resque tasks, all is well
Expand All @@ -84,8 +83,8 @@ def test_document_deletes

assert_equal User.search("*").total_entries, 4
end

def test_changes_are_updated_in_all_versions

end
end
7 changes: 0 additions & 7 deletions test/search_test.rb
Expand Up @@ -38,14 +38,7 @@ def test_search_count

def test_facets
assert_equal User.facets(:country_code)[:country_code]["ca"], 2

results = User.search("LONG or SKINNY")
puts results.inspect

facets = User.facets([:name, :country_code], :query => "LONG or SKINNY", :size => 100)

puts facets.inspect

assert_equal facets[:name]["john"], 2
assert_equal facets[:country_code]["it"], 1
end
Expand Down

0 comments on commit 92bf7ab

Please sign in to comment.