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