-
RSpec::Mocks::VerifyingMessageException does not implement method
Why is my code trying to call RSpec::Mocks::VerifyingMessageException?
-
Referencing one trait from another trait in factory_bot
Sometimes you want to DRY up traits by referencing one trait from another trait in factory_bot. I tried searching on “inheriting traits” (that’s just for one factory inheriting traits from another and was in a factory_bot issue in GitHub). I accidentally stumbled upon the answer in a slightly unrelated StackOverflow question about calling a trait…
-
RAW_POST_DATA in rspec rails for Rails 5.2 and beyond
The last time I was trying to specify RAW_POST_DATA in rspec was probably Rails 3 or 4, but I ran into a situation trying to test an edge case for error handling where I wanted that same functionality. I quickly found this issue [Unable to POST raw request body], but didn’t immediately figure out what…