Skip to content

Instantly share code, notes, and snippets.

@BJClark
Created March 20, 2009 22:17
Show Gist options
  • Save BJClark/82614 to your computer and use it in GitHub Desktop.
Save BJClark/82614 to your computer and use it in GitHub Desktop.
it "should build xhtml form pieces" do
@captcha.should_receive(:request_image).and_return @image
puts @captcha.vidoop_captcha
@captcha.vidoop_captcha().should have_tag "div.captcha" do
with_tag "img[src=http://api.vidoop.com/vs/captchas/cpt123/image]"
with_tag "input[type=hidden][name=captcha_id]"
with_tag "input[name=captcha]"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment