search for: record_free_text_ec

Displaying 2 results from an estimated 2 matches for "record_free_text_ec".

2007 Jun 22
5
assert_select trying to verify the presence of a textarea
...end The test results in a failure, because the element cannot be found. I''m pretty sure the element should be there, and I''ve tried the following combinations as well: assert_select "textarea", :name => "record[free_text_ec]" assert_select "textarea.record_free_text_ec", :name => "record[free_text_ec]" assert_select "input[type=textarea][id=record_free_text_ec]" assert_select "[type=textarea][id=record_free_text_ec]" assert_select "input[type=TEXTAREA][id=record_free_text_ec]" assert_select "LI textarea",...
2007 Jun 25
1
Functional tests and active scaffold: unexpected assertion failure.
Hello, I''m writing a functional test for a controller that uses active scaffold. def test_presence_of_field login_as(:peter) profile = Profile.find :first get :edit, {:id => profile.id} assert_response 200 assert_select "textarea#record_free_text_ec" end I was expecting the first ''assert 200'' to give me a green bar, but added it for confirmation, and indeed it gives me te following failure: Expected response to be a <200>, but was <0> The same assertion works fine when I don''t use active scaffold....