Sha256: 99d030fdd82089401ce8a530142e425eabeb8c79caa081d51cdb983a4156d62d
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
require 'spec_helper' describe "private_posts/index" do before(:each) do assign(:private_posts, [ stub_model(PrivatePost, :title => "Title", :body => "MyText" ), stub_model(PrivatePost, :title => "Title", :body => "MyText" ) ]) end it "renders a list of private_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 => "MyText".to_s, :count => 2 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_token_authentication-1.2.0 | spec/dummy/spec/views/private_posts/index.html.erb_spec.rb |