Sha256: 565e24760c11929c5973c145e37620bcdbf728fcbfce87e8c457bdfd799f9565

Contents?: true

Size: 676 Bytes

Versions: 34

Compression:

Stored size: 676 Bytes

Contents

require 'spec_helper'

describe "series_statement_relationships/index" do
  before(:each) do
    assign(:series_statement_relationships, Kaminari::paginate_array([
      stub_model(SeriesStatementRelationship,
        :parent_id => 1,
        :child_id => 2
      ),
      stub_model(SeriesStatementRelationship,
        :parent_id => 1,
        :child_id => 2
      )
    ]).page(1))
  end

  it "renders a list of series_statement_relationships" do
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "tr>td", :text => "title1", :count => 2
    assert_select "tr>td", :text => "title2", :count => 2
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre36 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre35 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre34 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre33 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre32 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre31 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre30 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre29 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre28 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre27 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre26 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre25 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre24 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre23 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre22 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre21 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre20 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre19 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre18 spec/views/series_statement_relationships/index.html.erb_spec.rb
enju_biblio-0.1.0.pre17 spec/views/series_statement_relationships/index.html.erb_spec.rb