Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the open schools request spec dynamic #24

Closed
wants to merge 2 commits into from

Conversation

peteryates
Copy link
Member

@peteryates peteryates commented Sep 2, 2023

This test started failing because the number of open schools seems to have changed from 81 to 80. Here, it's not the number that's important but that the number matches the quantity in the test set.


RSpec.describe 'GET /open_schools' do
let(:open_school_count) do
CSV
.read(Dir.glob('tmp/*test-set*').pop, headers: true)
Copy link
Member Author

Choose a reason for hiding this comment

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

I wonder if just hardcoding some test data is better here. This clearly isn't the most robust thing ever written 🙈

@peteryates peteryates force-pushed the make-open-schools-request-spec-dynamic branch from e9dc7f7 to ee94923 Compare September 2, 2023 19:55
Copy link
Contributor

@duncanjbrown duncanjbrown left a comment

Choose a reason for hiding this comment

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

Better than it was!

@peteryates peteryates marked this pull request as ready for review September 19, 2023 13:35
This test started failing because the number of open schools seems to
have changed from 81 to 80. Here, it's not the number that's important
but that the number matches the quantity in the test set.
@peteryates peteryates force-pushed the make-open-schools-request-spec-dynamic branch from ee94923 to 1750671 Compare January 2, 2024 20:09
@peteryates peteryates closed this Jan 24, 2024
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