Sha256: fc71298390c913c6ff4efb08dcf13f5744134ba96f897a46fe3ec4edbc82df93
Contents?: true
Size: 639 Bytes
Versions: 10
Compression:
Stored size: 639 Bytes
Contents
require 'spec_helper' describe "layouts/index" do before(:each) do assign(:layouts, [ stub_model(Layout, :name => "Name", :content => "MyText" ), stub_model(Layout, :name => "Name", :content => "MyText" ) ]) end it "renders a list of layouts" 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 # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => "MyText".to_s, :count => 2 end end
Version data entries
10 entries across 10 versions & 1 rubygems