Anyway, here's an example of the problem. Let's say we have an RJS page containing:
page.select("some_element_that_may_or_may_not_exist").each do |value|
page.replace_html value, "something"
end
Writing a test like this fails:
assert_select_rjs "some_element_that_may_or_may_not_exist" do
...
end
so does:
assert_select_rjs do
assert_select "some_element_that_may_or_may_not_exist", :count => 1
end
I'm assuming this is because of the page.select. I was forced to drop testing of this for now. If I find a fix, I'll post it here.
end
Writing a test like this fails:
assert_select_rjs "some_element_that_may_or_may
...
end
so does:
assert_select_rjs do
assert_select "some_element_that_may_or_may
end
I'm assuming this is because of the page.select. I was forced to drop testing of this for now. If I find a fix, I'll post it here.
No comments:
Post a Comment