Sha256: 915ccd7f435ebe58efe715276c0ad60bab8ce4a06c224ede2f86a37026488c62
Contents?: true
Size: 534 Bytes
Versions: 4
Compression:
Stored size: 534 Bytes
Contents
require 'spec_helper' describe "posts/index" do before(:each) do assign(:posts, [ stub_model(Post, :title => "Title", :body => "Body" ), stub_model(Post, :title => "Title", :body => "Body" ) ]) end it "renders a list of posts" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => "Title".to_s, :count => 2 assert_select "tr>td", :text => "Body".to_s, :count => 2 end end
Version data entries
4 entries across 4 versions & 1 rubygems