Skip to content

Conversation

@Ricoch
Copy link
Contributor

@Ricoch Ricoch commented Oct 1, 2020

Adds configuration for testing and tests for the worker.

@Ricoch Ricoch requested a review from a team October 1, 2020 18:37

shared_examples 'creates the physical file with data' do
it 'creates the physical file at the given location_url' do
subject
Copy link
Member

Choose a reason for hiding this comment

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

maybe it's a good idea to add expect(File.open(admin_report.reload.location_url)).to_not be before running the subject to make sure that the subject is actually creating it. Same for the other tests

Copy link
Contributor Author

@Ricoch Ricoch Oct 16, 2020

Choose a reason for hiding this comment

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

Cannot do File.open of a file that does not exist. I can try to do something like expect { File.open(admin_report.location_url.to_s) }.to raise_exception(Errno::ENOENT), wdyt?

Copy link
Member

@santib santib left a comment

Choose a reason for hiding this comment

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

Thanks for doing this! ❤️

@santib santib requested a review from a team October 2, 2020 15:34
Copy link

@juanmanuelramallo juanmanuelramallo left a comment

Choose a reason for hiding this comment

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

Looking good! Left some non blocking comments

@Ricoch Ricoch requested a review from santib October 19, 2020 15:32
@megatux megatux self-requested a review October 11, 2021 14:44
Copy link

@megatux megatux left a comment

Choose a reason for hiding this comment

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

Hey @Ricoch I wanted to run the tests but fail here. How do I setup the DB or run the RSpec tests?
Maybe add test running instructions to the README.md file?

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.

5 participants