Skip to content

Conversation

@kennethrioja
Copy link
Contributor

Summary of changes

  • Added a method to check for nil licence

Motivation and context

Checklist

  • I have read and followed the CONTRIBUTING guide.
  • I confirm that I have the authority necessary to make this contribution on behalf of its copyright owner and agree to license it to the TeSS codebase under the BSD license.

Comment on lines +235 to +240
def ingestor.get_column(*)
raise CSV::MalformedCSVError.new('test failure', 22)
end

ingestor.read(source.url)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better/safer to use minitest's stubbing:

ingestor.stub(:get_column, -> { raise CSV::MalformedCSVError.new('test failure', 22) }) do
  ingestor.read(source.url)
end

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants