Sha256: 68289b4a31d53b2c9fa32683f454ac220d415d9917bd75102168a259eaae24c7
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 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.4 | spec/teststuff/spec/views/users/index.html.erb_spec.rb |
stuffer-0.0.3 | spec/teststuff/spec/views/users/index.html.erb_spec.rb |