Sha256: c3cb0a9c74c59fbd5a847fe0a5ea58df27ca8a35afa917dedb8062dcd4bc12bb
Contents?: true
Size: 651 Bytes
Versions: 9
Compression:
Stored size: 651 Bytes
Contents
require 'spec_helper' describe "realizes/index" do before(:each) do assign(:realizes, [ stub_model(Realize, :expression_id => 1, :patron_id => 2 ), stub_model(Realize, :expression_id => 1, :patron_id => 2 ) ].paginate(: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
9 entries across 9 versions & 1 rubygems