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

Implicitly assert no exception is raised in assert_queries & al #44484

Merged
merged 1 commit into from
Feb 19, 2022

Commits on Feb 19, 2022

  1. Implicitly assert no exception is raised in assert_queries & al

    Fix: #44397
    Ref: #37313
    Ref: #42459
    
    This avoid mistakes such as:
    
    ```ruby
    assert_raise Something do
      assert_queries(1) do
        raise Something
      end
    end
    ```
    
    Co-Authored-By: Alex Coomans <alexc@squareup.com>
    byroot and drcapulet committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    e26372b View commit details
    Browse the repository at this point in the history