Skip to content

Instantly share code, notes, and snippets.

@bglazer
Created December 24, 2014 02:28
Show Gist options
  • Save bglazer/0ca072242495e9f25e0d to your computer and use it in GitHub Desktop.
Save bglazer/0ca072242495e9f25e0d to your computer and use it in GitHub Desktop.
Failing congress-forms tests
1) Main controller running the Padrino app on an actual server should run through the entire workflow for a captcha form successfully
Failure/Error: expect(JSON.load(captcha_response.body)["status"]).to eq("success")
expected: "success"
got: "error"
(compared using ==)
# ./spec/controllers/main_controller_spec.rb:40:in `block (3 levels) in <top (required)>'
2) Main controller route /fill-out-form with a captcha should result in a status of 'captcha_needed'
Failure/Error: expect(JSON.load(last_response.body)["status"]).to eq("captcha_needed")
expected: "captcha_needed"
got: "error"
(compared using ==)
# ./spec/controllers/main_controller_spec.rb:200:in `block (4 levels) in <top (required)>'
3) Main controller route /fill-out-form with a captcha should result in 'success' with the right answer given
Failure/Error: expect(JSON.load(last_response.body)["status"]).to eq("success")
expected: "success"
got: "error"
(compared using ==)
# ./spec/controllers/main_controller_spec.rb:209:in `block (4 levels) in <top (required)>'
4) CongressMember that already exists with actions including captcha should successfully fill form for a congress member via CongressMember.fill_out_form
Failure/Error: @congress_member.fill_out_form(MOCK_VALUES) do |c|
MiniMagick::Invalid:
executable not found: "identify"
# ./app/models/congress_member.rb:51:in `rescue in fill_out_form'
# ./app/models/congress_member.rb:39:in `fill_out_form'
# ./spec/models/congress_member_spec.rb:168:in `block (3 levels) in <top (required)>'
@bglazer
Copy link
Author

bglazer commented Dec 24, 2014

Needed to apt-get install imagemagick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment