expose regexp escape problem in fill_in_test

This commit is contained in:
Thomas Jack 2009-06-02 17:56:12 -05:00
parent 57326e5846
commit 2ae14f78b1
2 changed files with 5 additions and 0 deletions

View File

@ -5,4 +5,5 @@
<li><input type="text" name="rails[naming]" value="" /></li>
<li><input type="text" id="field_by_id" value="" /></li>
<li><label for="field_by_label_id">FieldByLabelId</label><input type="text" id="field_by_label_id" /></li>
<li><label for="field_by_label_with_special_characters">[Field]:</label><input type="text" id="field_by_label_with_special_characters" /></li>
</ul>

View File

@ -17,4 +17,8 @@ class FillInTest < ActionController::IntegrationTest
visit fields_path
fill_in "FieldByLabelId", :with => "value"
end
test "should fill in text field by label with special characters" do
visit fields_path
fill_in "[Field]:", :with => "value"
end
end