Skip to content

Instantly share code, notes, and snippets.

@candera
Created October 11, 2011 20:47
Show Gist options
  • Save candera/1279385 to your computer and use it in GitHub Desktop.
Save candera/1279385 to your computer and use it in GitHub Desktop.
spec failures
1) Refine search can search for income ranges
Failure/Error: page.number_of_leads.should == initial_results
expected: 876
got: 68 (using ==)
# ./spec/acceptance/refine_search_acceptance_spec.rb:147:in `block (2 levels) in <top (required)>'
2) Refine search can search for home value
Failure/Error: page.number_of_leads.should == initial_results
expected: 876
got: 3 (using ==)
# ./spec/acceptance/refine_search_acceptance_spec.rb:204:in `block (2 levels) in <top (required)>'
3) Refine search can search for married females who own their home
Failure/Error: page.number_of_leads.should < initial_results
expected: < 876
got: 876
# ./spec/acceptance/refine_search_acceptance_spec.rb:216:in `block (2 levels) in <top (required)>'
4) Refine search age range criteria can be removed by setting slider to 18-64 (default)
Failure/Error: lambda { click_on "Search" }.should change { Criteria.where(:parameter_id => parameter.id).count }.by(1)
result should have been changed by 1, but was changed by 0
# ./spec/acceptance/refine_search_acceptance_spec.rb:156:in `block (3 levels) in <top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment