jnicklas/capybara — Issue #553: has_content on edit does not match
Author: chabgood
Created: 2011-11-29 23:50:44+00:00
State: open

Rails 3.1.2 app. I can do a new action go to the show page and find elements not problem. when I have an object then go to the edit screen the matcher does not find the text. I can do a save_and_open_page and the text is in the view.

scenario "Problem Edit" do
@problema = Factory.create(:problem, :name => 'Type II Diabetes')
visit edit_problem_path(@problema)
save_and_open_page
page.should have_content("Type II Diabetes") --> Not seeing it even though the save and open shows it.
end