Sha256: 5e75d63702f508209b26c0d08c1867d41bc959167f2a6c367d27a1eae980f7bc

Contents?: true

Size: 639 Bytes

Versions: 6

Compression:

Stored size: 639 Bytes

Contents

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

describe "checkouts/index" do
  fixtures :users, :roles, :user_has_roles

  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
    rendered.should match(/これからの生命科学研究者のためのバイオ特許入門講座/)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre48 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.1.0.pre47 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.1.0.pre46 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.1.0.pre45 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.1.0.pre44 spec/views/checkouts/index.html.erb_spec.rb
enju_circulation-0.1.0.pre43 spec/views/checkouts/index.html.erb_spec.rb