Displaying 1 result from an estimated 1 matches for "have_a_subject_field".
2009 Apr 02
8
Problem with Custom matcher and Blocks
...ct 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 "should have a subject dropdown box"
# This should be failing
it "should have a name field" do
response.should have_a_contact_form do |form|
form.should have_a_name_field
end
end # it "should have a nam...