Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixes bug in Test::Schema when using filter_parameters #2046
By default all Rails apps are created with an initializer called filter_parameter_logging.rb and its default contents are:
Rails.application.config.filter_parameters += [:password]
If this line is executed, as it is on this PR, the class of
Not properly "mocking" the Rails app properly caused the bug to be hidden in this and leonelgalan/rspec-active_model_serializers test suite.
This bug was first reported by me in another in #1947 (review), but at the time I couldn't produce failing tests.