Sha256: dcf3e4ed44a04afb1c4f752a8ef0fd0954d88b8365eff32ba770908be62b7468

Contents?: true

Size: 679 Bytes

Versions: 55

Compression:

Stored size: 679 Bytes

Contents

require 'spec_helper'

describe "exemplifies/index" do
  before(:each) do
    assign(:exemplifies, Kaminari::paginate_array([
      stub_model(Exemplify,
        :manifestation_id => 1,
        :item_id => 1
      ),
      stub_model(Exemplify,
        :manifestation_id => 1,
        :item_id => 2
      )
    ]).page(1))
    @ability = Object.new
    @ability.extend(CanCan::Ability)
    controller.stub(:current_ability) { @ability }
  end

  it "renders a list of exemplifies" do
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "tr>td", :text => Manifestation.find(1).original_title, :count => 2
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre55 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre54 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre53 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre52 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre51 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre50 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre49 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre48 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre47 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre46 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre45 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre44 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre43 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre42 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre41 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre40 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre39 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre38 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre37 spec/views/exemplifies/index.html.erb_spec.rb
enju_biblio-0.1.0.pre36 spec/views/exemplifies/index.html.erb_spec.rb