Sha256: 44b6f1386b2b9a2deb2ad1f1a85435836ccd472ab380b68f992d67b7b4f4205b

Contents?: true

Size: 530 Bytes

Versions: 10

Compression:

Stored size: 530 Bytes

Contents

require "rails_helper.rb"

describe "manifestations/index.txt.erb" do
  before(:each) do
    manifestation = FactoryGirl.create(:manifestation)
    manifestation.items << FactoryGirl.create(:item, bookstore_id: 1, budget_type_id: 1, price: 100)
    @manifestations = assign(:manifestations, [ manifestation ] )
  end

  it "should excludes librarian specific fields" do
    params[:format] = "text"
    render
    csv = CSV.parse(rendered, headers: true, col_sep: "\t")
    expect(csv["bookstore"].compact).to be_empty
  end
end

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
enju_biblio-0.2.3 spec/views/manifestations/index.txt.erb_spec.rb
enju_biblio-0.2.2 spec/views/manifestations/index.txt.erb_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/spec/views/manifestations/index.txt.erb_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/views/manifestations/index.txt.erb_spec.rb
enju_biblio-0.2.1 spec/views/manifestations/index.txt.erb_spec.rb
enju_biblio-0.2.0 spec/views/manifestations/index.txt.erb_spec.rb
enju_biblio-0.2.0.beta.4 spec/views/manifestations/index.txt.erb_spec.rb
enju_biblio-0.2.0.beta.3 spec/views/manifestations/index.txt.erb_spec.rb
enju_biblio-0.2.0.beta.2 spec/views/manifestations/index.txt.erb_spec.rb
enju_biblio-0.2.0.beta.1 spec/views/manifestations/index.txt.erb_spec.rb