Sha256: a7c70300ba009b2af8f4f3594ad138fcb02a076e169c3a1198fae0ab0dfa9854
Contents?: true
Size: 628 Bytes
Versions: 9
Compression:
Stored size: 628 Bytes
Contents
require 'rails_helper' describe "realizes/index" do before(:each) do assign(:realizes, Kaminari::paginate_array([ stub_model(Realize, :expression_id => 1, :agent_id => 2 ), stub_model(Realize, :expression_id => 1, :agent_id => 2 ) ]).page(1)) end it "renders a list of realizes" 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
9 entries across 8 versions & 2 rubygems