Sha256: f098d2dbb49b8deb9db660adcd0fee0a1e9b26c830542aa386950548e7203ec6
Contents?: true
Size: 664 Bytes
Versions: 42
Compression:
Stored size: 664 Bytes
Contents
require 'spec_helper' describe "realizes/index" do before(:each) do assign(:realizes, Kaminari::paginate_array([ stub_model(Realize, :expression_id => 1, :patron_id => 2 ), stub_model(Realize, :expression_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 realizes" 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