Sha256: d68d8609f9b7bb62ee232042ba30c35e75586c79a53aff2966a12020c6c841f1
Contents?: true
Size: 808 Bytes
Versions: 4
Compression:
Stored size: 808 Bytes
Contents
require 'rails_helper' module CustomerVault RSpec.describe "customer_vault/corporations/index", :type => :view do before(:each) do assign(:corporations, [ Corporation.create!( :name => "Name", :email => "Email", :phone => "Phone", :fax => "Fax" ), Corporation.create!( :name => "Name", :email => "Email", :phone => "Phone", :fax => "Fax" ) ]) end it "renders a list of corporations" do render assert_select "tr>td", :text => "Name".to_s, :count => 2 assert_select "tr>td", :text => "Email".to_s, :count => 2 assert_select "tr>td", :text => "Phone".to_s, :count => 2 assert_select "tr>td", :text => "Fax".to_s, :count => 2 end end end
Version data entries
4 entries across 4 versions & 1 rubygems