Sha256: 5f26a13dac54debdcb6e86258d5b26b6ae2ab6fac86a4070e372e5dedb8cf2ea

Contents?: true

Size: 602 Bytes

Versions: 8

Compression:

Stored size: 602 Bytes

Contents

require 'rails_helper'

describe "agent_import_results/index.txt.ruby" do
  fixtures :all

  before(:each) do
    file = AgentImportFile.create(
      agent_import: File.new("#{Rails.root}/../../examples/agent_import_file_sample1.tsv"),
      user: users(:admin)
    )
    file.import_start
    assign(:agent_import_file_id, file.id)
    assign(:agent_import_results, AgentImportFile.find(file.id).agent_import_results)
  end

  it "renders a list of agent_import_results" do
    render
    expect(CSV.parse(rendered, headers: true, col_sep: "\t").first['full_name']).to eq 'フルネーム'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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