require 'rails_helper' module CustomerVault RSpec.describe "customer_vault/corporations/new", :type => :view do before(:each) do assign(:corporation, Corporation.new( :name => "MyString", :email => "MyString", :phone => "MyString", :fax => "MyString" )) end it "renders new corporation form" do render assert_select "form[action=?][method=?]", customer_vault.corporations_path, "post" do assert_select "input#corporation_name[name=?]", "corporation[name]" assert_select "input#corporation_email[name=?]", "corporation[email]" assert_select "input#corporation_phone[name=?]", "corporation[phone]" assert_select "input#corporation_fax[name=?]", "corporation[fax]" end end end end