Please rename this file to something else.  It isn't testing edit.html.erb, it's testing record editing. May I suggest 'spec/features/record_editing_spec.rb'.