search for: have_a_form_with_id

Displaying 1 result from an estimated 1 matches for "have_a_form_with_id".

2009 Apr 02
8
Problem with Custom matcher and Blocks
.../index the contact form before it has been submitted the subject dropdown box should have a blank option'' undefined method `have_selector'' for #<FormMatchers::HaveAFormWithID:0x7f3260ac> The have_a_contact_form method is as follows: def have_a_contact_form &block have_a_form_with_id ''contact'', &block end That calls a have_a_form_with_id method, which calls the haveAFormWithID class. module FormMatchers class HaveAFormWithID def initialize id, &block @id = id @block = block end def matches? response resp...