Sha256: 15645e9fed82d9ddd2b19eeefa56fe6f8decdb0d18c0222596c0bab4649526cb
Contents?: true
Size: 610 Bytes
Versions: 3
Compression:
Stored size: 610 Bytes
Contents
require 'spec_helper' describe "creates/index" do before(:each) do assign(:creates, Kaminari::paginate_array([ stub_model(Create, :work_id => 1, :agent_id => 1 ), stub_model(Create, :work_id => 1, :agent_id => 2 ) ]).page(1)) end it "renders a list of creates" 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