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

Rails 5 - Fix discussion_spec.rb #341

Merged
merged 4 commits into from
Jul 8, 2024
Merged

Commits on Jul 3, 2024

  1. Update discussion_spec.rb

    - update validation message spec. it is enough for us to test that discussion fails validation because there is no user. no need to check for a rails error message that has changed from 4 -> 5
    - after_commit callbacks do not run in transaction fixtures in specs for Rails 4, a workaround for Rails versions less than 5 is to use run_callbacks. Issue has been fixed in Rails 5. So we add a version check on spec. See https://stackoverflow.com/a/30901628/15768801 for more details.
    yuenmichelle1 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    6a7c851 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2468b75 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9ea024f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d6b766a View commit details
    Browse the repository at this point in the history