Sha256: df04e3c2c97da50a513cf2c84c14f49f5130e1f9c887b21d8f80589deb4ef9b4

Contents?: true

Size: 568 Bytes

Versions: 4

Compression:

Stored size: 568 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe "checkouts/index" do
  fixtures :all

  before(:each) do
    view.extend EnjuLeaf::EnjuLeafHelper
    view.extend EnjuBiblio::BiblioHelper

    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
    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

4 entries across 4 versions & 1 rubygems

Version Path
enju_circulation-0.1.2 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.1.1 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.1.0 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.1.0.pre49 spec/views/checkouts/index.html.erb_spec.rb