Displaying 1 result from an estimated 1 matches for "have_a_contact_form".
2009 Apr 02
8
Problem with Custom matcher and Blocks
...'m trying to write my first custom matcher.
Here''s a bit of my example group.
describe "/contact/index" do
include FormMatchers
before(:each) do
render ''contact/index''
end
it "should show the contact form" do
response.should have_a_contact_form
end
describe "the contact form" do
context "before it has been submitted" do
it "should have a subject dropdown box" do
response.should have_a_contact_form do |form|
form.should have_a_subject_field
end
end # it "sh...