Sha256: 78fa3e7ba5bad9216c3edb731693954f1cfc457cd4d3d6511bb7568f3898e865

Contents?: true

Size: 638 Bytes

Versions: 10

Compression:

Stored size: 638 Bytes

Contents

require 'spec_helper'

describe "articles/index" do
  before(:each) do
    assign(:articles, [
      stub_model(Article,
        :name => "Name",
        :body => "MyText"
      ),
      stub_model(Article,
        :name => "Name",
        :body => "MyText"
      )
    ])
  end

  it "renders a list of articles" 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

Version Path
kuztuscms-0.0.10 spec/views/kuztuscms/articles/index.html.erb_spec.rb
kuztuscms-0.0.9 spec/views/kuztuscms/articles/index.html.erb_spec.rb
kuztuscms-0.0.8 spec/views/kuztuscms/articles/index.html.erb_spec.rb
kuztuscms-0.0.7 spec/views/kuztuscms/articles/index.html.erb_spec.rb
kuztuscms-0.0.6 spec/views/kuztuscms/articles/index.html.erb_spec.rb
kuztuscms-0.0.5 spec/views/kuztuscms/articles/index.html.erb_spec.rb
kuztuscms-0.0.4 spec/views/kuztuscms/articles/index.html.erb_spec.rb
kuztuscms-0.0.3 spec/views/kuztuscms/articles/index.html.erb_spec.rb
kuztuscms-0.0.2 spec/views/kuztuscms/articles/index.html.erb_spec.rb
kuztuscms-0.0.1 spec/views/kuztuscms/articles/index.html.erb_spec.rb