lib/pilot/tester_importer.rb in pilot-1.8.0 vs lib/pilot/tester_importer.rb in pilot-1.9.0
- old
+ new
@@ -11,19 +11,18 @@
file = config[:testers_file_path]
tester_manager = Pilot::TesterManager.new
imported_tester_count = 0
- is_first = true
CSV.foreach(file, "r") do |row|
- if is_first
- is_first = false
- next
- end
-
first_name, last_name, email = row
unless email
+ UI.error("No email found in row: #{row}")
+ next
+ end
+
+ unless email.index("@")
UI.error("No email found in row: #{row}")
next
end
# Add this the existing config hash to pass it to the TesterManager