From 2ae14f78b1385eed3d05b87fcea506ce06df3082 Mon Sep 17 00:00:00 2001 From: Thomas Jack Date: Tue, 2 Jun 2009 17:56:12 -0500 Subject: [PATCH] expose regexp escape problem in fill_in_test --- spec/integration/rails/app/views/fields/show.html.erb | 1 + spec/integration/rails/test/integration/fill_in_test.rb | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/spec/integration/rails/app/views/fields/show.html.erb b/spec/integration/rails/app/views/fields/show.html.erb index afff7ad..7a9ae14 100644 --- a/spec/integration/rails/app/views/fields/show.html.erb +++ b/spec/integration/rails/app/views/fields/show.html.erb @@ -5,4 +5,5 @@
  • +
  • \ No newline at end of file diff --git a/spec/integration/rails/test/integration/fill_in_test.rb b/spec/integration/rails/test/integration/fill_in_test.rb index db116d9..530c7e7 100644 --- a/spec/integration/rails/test/integration/fill_in_test.rb +++ b/spec/integration/rails/test/integration/fill_in_test.rb @@ -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 \ No newline at end of file