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

Fix obsolete respond_with_bip usage #3483

Merged
merged 1 commit into from
May 10, 2019
Merged

Conversation

javierm
Copy link
Member

@javierm javierm commented May 9, 2019

References

Objectives

  • Replace the method respond_with_bip, which belonged to a gem we removed
  • Add tests checking the application behaves properly updating polls with AJAX requests

Since we removed the `best_in_place` gem, this method doesn't exist
anymore. We're replacing it with what the method actually does.

Note the test doesn't check the poll is correctly updated. We could add
a `visit proposal_dashboard_polls_path(proposal)` before checking the
"Show results" field, but then we would enter a race condition between
this request and the AJAX request. A proper solution would be to provide
actual feedback to the user so they know the poll has been updated, and
then checking that feedback is present in the tests.
@javierm javierm self-assigned this May 9, 2019
@javierm
Copy link
Member Author

javierm commented May 9, 2019

Travis build fails due to a bug not related to this pull request. This bug should be fixed when we merge AyuntamientoMadrid#1615

@javierm javierm merged commit 21ec1af into master May 10, 2019
@javierm javierm deleted the backport-fix_respond_with_bip branch May 10, 2019 13:09
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.

None yet

2 participants