Sha256: 3629a78fd7107443b3f36f5f72a5f0d9133e236eb6c4e597186fe670ec7ee965

Contents?: true

Size: 527 Bytes

Versions: 11

Compression:

Stored size: 527 Bytes

Contents

require "rails_helper.rb"

describe "manifestations/index.txt.ruby" do
  before(:each) do
    manifestation = FactoryBot.create(:manifestation)
    manifestation.items << FactoryBot.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

11 entries across 11 versions & 1 rubygems

Version Path
enju_biblio-0.3.13 spec/views/manifestations/index.txt.ruby_spec.rb
enju_biblio-0.3.12 spec/views/manifestations/index.txt.ruby_spec.rb
enju_biblio-0.3.11 spec/views/manifestations/index.txt.ruby_spec.rb
enju_biblio-0.3.10 spec/views/manifestations/index.txt.ruby_spec.rb
enju_biblio-0.3.10.rc.3 spec/views/manifestations/index.txt.ruby_spec.rb
enju_biblio-0.3.10.rc.2 spec/views/manifestations/index.txt.ruby_spec.rb
enju_biblio-0.3.10.rc.1 spec/views/manifestations/index.txt.ruby_spec.rb
enju_biblio-0.3.9 spec/views/manifestations/index.txt.ruby_spec.rb
enju_biblio-0.4.0.rc.1 spec/views/manifestations/index.txt.ruby_spec.rb
enju_biblio-0.3.8 spec/views/manifestations/index.txt.ruby_spec.rb
enju_biblio-0.3.7 spec/views/manifestations/index.txt.ruby_spec.rb