Skip to content

Commit

Permalink
test(captcha): add a little test that verifies captcha works
Browse files Browse the repository at this point in the history
check if all needed dependencies for captcha are installed
  • Loading branch information
SuperTux88 committed Nov 3, 2020
1 parent 0423466 commit 557315e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/integration/default/controls/captcha_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

control 'captcha generation' do
impact 0.5
title 'should be working'

# example captcha command generated by simple_captcha2 gem
captcha_cmd = 'convert -fill darkgreen -background white -size 120x20 -wave 1x96 '\
'-gravity Center -pointsize 22 -implode 0.2 label:01234 jpeg:-'

describe command(captcha_cmd) do
its('stderr') { should eq '' }
its('exit_status') { should eq 0 }
end
end

0 comments on commit 557315e

Please sign in to comment.