![]() ![]() If you’re aware of an earlier reference to this, let me know! Painting A Realistic Picture □Īll you need to paint is a few tools, a little instruction, and a vision in your mind. ![]() The earliest reference to this approach that I can find is from Eliot Sykes in 2017. In there Michael Gee shares a workaround. I found this issue in rspec-rails’s issue tracker. I only came across a solution by searching for others’ approaches. I didn’t figure out how to resolve this on my own. However, the request spec still raises the exception. We know that Rails has special handling to return a 404 status code in this case. Our test raises an ActiveRecord::RecordNotFound exception. ![]() The endpoint does respond as expected if you hit it from curl or another way. This test does not pass! Not because we’re TDD-ing this and the implementation doesn’t exist. It "does not find a large tree" do tree = FactoryBot. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |