The following code works, but I don’t know how to test ist properly:
In the view there is a simple link_to_remote:
| <%= link_to_remote “Create New”, :url => new_category_url %>
Essentially, when I click on this link the “div” box gets hidden with a
| page.hide “create”
How do I test this? I have so far the following test:
| class CreateCategoriesTest < ActionController::IntegrationTest
| def test_create_category
| get ‘categories’
| assert_select “#create”, “Create New”
| xml_http_request new_category_path
| assert_response :success
| # ???
How can I test, that the “#create” element is hidden?
TIA and regards,