Skip to content

Instantly share code, notes, and snippets.

@tdavchev
Created May 7, 2013 23:28
Show Gist options
  • Save tdavchev/5537021 to your computer and use it in GitHub Desktop.
Save tdavchev/5537021 to your computer and use it in GitHub Desktop.
1) User registration returns error with unmatching passwords
Failure/Error: page.should have_content "Password doesn't match confirmation"
expected there to be text "Password doesn't match confirmation" in "Abene Sign up Login User index Jobs Skills Sign up Select list Email Password Password confirmation Sign in Forgot your password? © 2013 Abene Information Link Link Link Abene Link Link Link"
# ./spec/features/user_spec.rb:32:in `block (3 levels) in <top (required)>'
2) User registration of students
Failure/Error: page.should have_checked_field("user_type_student")
Capybara::ExpectationNotMet:
expected to find field "user_type_student" but there were no matches
# ./spec/features/user_spec.rb:38:in `block (3 levels) in <top (required)>'
3) User registration of universities
Failure/Error: within('#select01').select('University')
LocalJumpError:
no block given (yield)
# ./spec/features/user_spec.rb:55:in `block (3 levels) in <top (required)>'
4) User registration of companies
Failure/Error: choose("user_type_company")
Capybara::ElementNotFound:
Unable to find radio button "user_type_company"
# ./spec/features/user_spec.rb:47: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