require 'rails_helper'

RSpec.describe "companies/edit", type: :view do
  it "renders the edit company form" do
    render

    assert_select "form[action=?][method=?]", company_path(@company), "post" do

      assert_select "input#company_name[name=?]", "company[name]"
    end
  end
end
