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

Version Path
enju_circulation-0.3.11 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.3.10 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.3.9 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.4.0.rc.1 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.3.8 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.3.7 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.4.0.beta.4 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.4.0.beta.3 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.3.6 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.4.0.beta.2 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.4.0.beta.1 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.3.5 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.3.4 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.3.3 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.3.2 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.3.1 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.3.0 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.3.0.rc.1 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.3.0.beta.1 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.2.5 spec/views/checkouts/index.html.erb_spec.rb