Skip to content

Instantly share code, notes, and snippets.

@jcblitz
Created April 7, 2014 14:05
Show Gist options
  • Save jcblitz/ab99f4a07964c4f5bb64 to your computer and use it in GitHub Desktop.
Save jcblitz/ab99f4a07964c4f5bb64 to your computer and use it in GitHub Desktop.
it 'gives an error when the file is invalid' do
expect { CustomerDataImporter.process(nil) }.to raise_error(ArgumentError)
record_ids = CustomerDataImporter.process(nil)
end
@jcblitz
Copy link
Author

jcblitz commented Apr 7, 2014

Failures:

  1. CustomerDataImporter#process gives an error when the file is invalid
    Failure/Error: record_ids = CustomerDataImporter.process(nil)
    Exception:
    An import file is required.

    ./lib/customer_data_importer.rb:7:in `process'

    ./spec/models/customer_data_importer_spec.rb:11:in`block (3 levels) in <top (required)>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment