Sha256: f1a643dfdc899981c8f1b516a5609d7fcd8705f4d6dcc430a73e986db5fd1038
Contents?: true
Size: 670 Bytes
Versions: 42
Compression:
Stored size: 670 Bytes
Contents
require 'spec_helper' describe "produces/index" do before(:each) do assign(:produces, Kaminari::paginate_array([ stub_model(Produce, :manifestation_id => 1, :patron_id => 2 ), stub_model(Produce, :manifestation_id => 1, :patron_id => 2 ) ]).page(1)) @ability = Object.new @ability.extend(CanCan::Ability) controller.stub(:current_ability) { @ability } end it "renders a list of produces" 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
42 entries across 42 versions & 1 rubygems