Sha256: 4e08bc683981f060878c81bb5920b6646e0e76ae8b17304fd46fb0090da5e953
Contents?: true
Size: 798 Bytes
Versions: 6
Compression:
Stored size: 798 Bytes
Contents
require 'spec_helper' describe "users/index" do before(:each) do assign(:users, [ stub_model(User, :first_name => "First Name", :last_name => "Last Name", :email => "Email", :phone => 1 ), stub_model(User, :first_name => "First Name", :last_name => "Last Name", :email => "Email", :phone => 1 ) ]) end it "renders a list of users" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => "First Name".to_s, :count => 2 assert_select "tr>td", :text => "Last Name".to_s, :count => 2 assert_select "tr>td", :text => "Email".to_s, :count => 2 assert_select "tr>td", :text => 1.to_s, :count => 2 end end
Version data entries
6 entries across 6 versions & 1 rubygems