Sha256: dcf7652fb4a7cc0276570c9e2ce41f12badc79239d0defcc00191405c04a67fc
Contents?: true
Size: 633 Bytes
Versions: 3
Compression:
Stored size: 633 Bytes
Contents
require 'spec_helper' describe "produces/index" do before(:each) do assign(:produces, Kaminari::paginate_array([ stub_model(Produce, :manifestation_id => 1, :agent_id => 2 ), stub_model(Produce, :manifestation_id => 1, :agent_id => 2 ) ]).page(1)) end it "renders a list of produces" do allow(view).to receive(:policy).and_return double(create?: true, destroy?: true) 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
3 entries across 3 versions & 1 rubygems