Sha256: 5d13d35971ddccc749d12faf95af6f0c4aa9b96d6138fa21641c5c119ecd32b5
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
require 'spec_helper' describe "users/index" do before(:each) do assign(:users, [ stub_model(User, :new => "New", :index => "Index", :show => "Show" ), stub_model(User, :new => "New", :index => "Index", :show => "Show" ) ]) 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 => "New".to_s, :count => 2 assert_select "tr>td", :text => "Index".to_s, :count => 2 assert_select "tr>td", :text => "Show".to_s, :count => 2 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
genderize-0.0.4 | spec/dummy/spec/views/users/index.html.erb_spec.rb |