Sha256: 15367f7e823ca145dd90a5088fdbb5f94f7ab76670af9343a691f807b127b646
Contents?: true
Size: 570 Bytes
Versions: 2
Compression:
Stored size: 570 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enju_circulation-0.2.0.beta.2 | spec/views/checkouts/index.html.erb_spec.rb |
enju_circulation-0.2.0.beta.1 | spec/views/checkouts/index.html.erb_spec.rb |