Sha256: 5fdff10ca23b7495ae1aba6b4be30e8025617f25076d78da4c903a2083459666
Contents?: true
Size: 526 Bytes
Versions: 11
Compression:
Stored size: 526 Bytes
Contents
require "rails_helper.rb" describe "manifestations/index.txt.erb" 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