Sha256: f3c1d2995955bf9c7b57e5ff40b55dd8c94307bd4d6b467d6d724fec4cdc4a88
Contents?: true
Size: 571 Bytes
Versions: 27
Compression:
Stored size: 571 Bytes
Contents
# -*- encoding: utf-8 -*- require 'rails_helper' describe "checkouts/index" do fixtures :all before(:each) do assign(:checkouts, Checkout.page(1)) assign(:checkouts_facet, []) view.stub(:current_user).and_return(User.where(username: 'enjuadmin').first) end it "renders a list of checkouts" do allow(view).to receive(:policy).and_return double(update?: true, destroy?: true) render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr:nth-child(2)>td:nth-child(2)", /00001/ end end
Version data entries
27 entries across 27 versions & 1 rubygems