in spec/appcenter_fetch_devices_action_spec.rb [2:12]
def allow_devices_file(devices_file)
allow(CSV).to receive(:open)
.with(devices_file, 'w',
write_headers: true,
headers: ['Device ID', 'Device Name'],
col_sep: "\t")
.and_yield(CSV.open('./spec/fixtures/devicesfiles/devices.txt'))
allow(CSV).to receive(:parse).and_return('')
end