Capybara and contenteditable

Here's how I ended up solving the problem.

feature "Editing", js: true do

  scenario "with valid input" do
    el = find(:xpath, "//div[@contenteditable='true' and @name='name']")
    el.set("Zinn")
    el.native.send_keys(:return)
    expect(page).to have_content("Update successful!")
    expect(page).to have_content("Zinn")
  end

end

According to this thread it looks like you should be able to use the fill_in helper on contenteditable divs, but I couldn't get that to work.