Sha256: 2e7d1461a06ad153231d6b59ff1fb03202e993256473fd8571ceb9c2fb8a4fb0
Contents?: true
Size: 658 Bytes
Versions: 2
Compression:
Stored size: 658 Bytes
Contents
require 'spec_helper' describe "posts/index" do before(:each) do assign(:posts, [ stub_model(Post, :title => "Title", :body => "MyText", :published => false ), stub_model(Post, :title => "Title", :body => "MyText", :published => false ) ]) 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 => "MyText".to_s, :count => 2 assert_select "tr>td", :text => false.to_s, :count => 2 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_token_authentication-1.0.0.pre.5 | test/dummy/spec/views/posts/index.html.erb_spec.rb |
simple_token_authentication-1.0.0.beta.5 | test/dummy/spec/views/posts/index.html.erb_spec.rb |