Skip to content

Instantly share code, notes, and snippets.

@kenton
Last active December 14, 2015 21:49
Show Gist options
  • Save kenton/5153864 to your computer and use it in GitHub Desktop.
Save kenton/5153864 to your computer and use it in GitHub Desktop.
rspec ./spec/controllers/white_glove_request_controllers_spec.rb:5 # WhiteGloveRequestsController displays contact detail form after new request
rspec ./spec/requests/consign_form_spec.rb:23 # Consign visitor creates consignment should return to consignment form on bad email
rspec ./spec/requests/consign_form_spec.rb:31 # Consign visitor creates consignment should not have submission button when terms not accepted
---
1) Consign visitor creates consignment should return to consignment form on bad email
Failure/Error: fill_in "consignor_name", :with => "James Tailor"
Capybara::ElementNotFound:
cannot fill in, no text field, text area or password field with id, name, or label 'consignor_name' found
# (eval):2:in `fill_in'
# ./spec/requests/consign_form_spec.rb:41:in `fill_in_consignment'
# ./spec/requests/consign_form_spec.rb:24:in `block (3 levels) in <top (required)>'
2) Consign visitor creates consignment should not have submission button when terms not accepted
Failure/Error: page.should have_css("#submit-consign-self-service-form", :visible => false)
expected css "#submit-consign-self-service-form" to return something
# ./spec/requests/consign_form_spec.rb:32: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