sul-dlss/sw_index_tests — pull request #72 by lmcglohon (2014-12-15 21:39:35+00:00)
Title: Fixed failures by increasing have_at_most values and removed unnecessary test for NOT

1) advanced search pub info subject 'soviet union and historiography' and pub info '1910-1911 pub info 2011
Failure/Error: resp.should have_at_most(128100).results
expected at most 128100 results, got 128207
# ./spec/advanced_search_spec.rb:345:in `block (4 levels) in '

3) Japanese Everything Searches Edo (old name for Tokyo) behaves like expected result size everything search has between 1955 and 1990 results
Failure/Error: resp.should have_at_most(max).results
expected at most 1990 results, got 1994
Shared Example Group: "expected result size" called from ./spec/cjk/japanese_everything_spec.rb:26
# ./spec/support/shared_examples_cjk.rb:8:in `block (2 levels) in '

4) Japanese Kanji variants modern Kanji != simplified Han buddhism w lang limit behaves like result size and vern short title matches first everything search has between 1000 and 1355 results
Failure/Error: resp.should have_at_most(max).results
expected at most 1355 results, got 1357
Shared Example Group: "result size and vern short title matches first" called from ./spec/cjk/japanese_han_variants_spec.rb:21
# ./spec/support/shared_examples_cjk.rb:8:in `block (2 levels) in '

5) Japanese Kanji variants modern Kanji != simplified Han buddhism w lang limit behaves like result size and vern short title matches first everything search has between 1000 and 1355 results
Failure/Error: resp.should have_at_most(max).results
expected at most 1355 results, got 1357
Shared Example Group: "result size and vern short title matches first" called from ./spec/cjk/japanese_han_variants_spec.rb:23
# ./spec/support/shared_examples_cjk.rb:8:in `block (2 levels) in '

6) Japanese Kanji variants modern Kanji != simplified Han Edo (old name for Tokyo) behaves like expected result size everything search has between 1970 and 2010 results
Failure/Error: resp.should have_at_most(max).results
expected at most 2010 results, got 2013
Shared Example Group: "expected result size" called from ./spec/cjk/japanese_han_variants_spec.rb:38
# ./spec/support/shared_examples_cjk.rb:8:in `block (2 levels) in '

2) boolean operators NOT operator wb4 NOT shakespeare has an appropriate number of results
Failure/Error: resp.should have_at_least(7000).documents
expected at least 7000 documents, got 6277
# ./spec/boolean_spec.rb:147:in `block (4 levels) in '

Removed - eloader records being re-worked. wb4 is going away.
context "wb4 NOT shakespeare" do
it_behaves_like "NOT negates following term", 'wb4 NOT shakespeare', "2228164", "1989093", 20
it "has an appropriate number of results" do
resp = solr_resp_ids_from_query 'wb4 NOT shakespeare'
resp.should have_at_least(7000).documents
end
end