Sha256: 3a2025bc9ea55d09b45e48ba692481850a52b9cc979a1ce27365c5a111e84d7d
Contents?: true
Size: 1.43 KB
Versions: 12
Compression:
Stored size: 1.43 KB
Contents
require 'rails_helper' module CustomerVault RSpec.describe "customer_vault/individuals/new", :type => :view do before(:each) do assign(:individual, Individual.new( :first_name => "MyString", :last_name => "MyString", :email => "MyString", :title => "MyString", :twitter => "MyString", :www => "MyString", :context => "MyText", :phone => "MyString", :fax => "MyString", :mobile => "MyString" )) end it "renders new individual form" do render assert_select "form[action=?][method=?]", customer_vault.individuals_path, "post" do assert_select "input#individual_first_name[name=?]", "individual[first_name]" assert_select "input#individual_last_name[name=?]", "individual[last_name]" assert_select "input#individual_email[name=?]", "individual[email]" assert_select "input#individual_title[name=?]", "individual[title]" assert_select "input#individual_twitter[name=?]", "individual[twitter]" assert_select "input#individual_www[name=?]", "individual[www]" assert_select "textarea#individual_context[name=?]", "individual[context]" assert_select "input#individual_phone[name=?]", "individual[phone]" assert_select "input#individual_fax[name=?]", "individual[fax]" assert_select "input#individual_mobile[name=?]", "individual[mobile]" end end end end
Version data entries
12 entries across 12 versions & 1 rubygems