Sha256: 57825f2ff635dbacf536c78f8af8f167338a63f832efefd63b728d0608cebb0b
Contents?: true
Size: 1.47 KB
Versions: 12
Compression:
Stored size: 1.47 KB
Contents
require 'rails_helper' module CustomerVault RSpec.describe "customer_vault/individuals/edit", :type => :view do before(:each) do @individual = assign(:individual, Individual.create!( :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 the edit individual form" do render assert_select "form[action=?][method=?]", customer_vault.individual_path(@individual), "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