Sha256: ba13c82b9876ff38fd1f9dc53528b061e1af83fba2824d4575ae324011b27174
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
require 'spec_helper' describe "users/index" do before(:each) do assign(:users, [ stub_model(User, :name => "Name", :email => "Email" ), stub_model(User, :name => "Name", :email => "Email" ) ]) 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 => "Name".to_s, :count => 2 assert_select "tr>td", :text => "Email".to_s, :count => 2 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stuffer-0.0.2 | lib/teststuff/spec/views/users/index.html.erb_spec.rb |
stuffer-0.0.1 | lib/teststuff/spec/views/users/index.html.erb_spec.rb |