require 'rails_helper'

describe 'UserImporter' do


  it 'instantiates with a filename' do
    filename = File.join(Rails.root, "spec", "resources", "anonymized_user_data.xlsx")
    expect { UserImporter.new(filename) }.to_not raise_error
  end
end
require 'rails_helper'

describe 'UserImporter' do
  let(:filename) { File.join(Rails.root, "spec", "resources", "anonymized_user_data.xlsx") }
  let(:subject) { UserImporter.new(filename) }

  it 'instantiates with a filename' do
    expect { subject }.to_not raise_error
  end
end
Add filename & subject to let blocks in importer spec
Add filename & subject to let blocks in importer spec
