News for hackers. Stuff that matters.
Re:From Node to Ruby on Rails by m_ke on Thursday December 16, 2021 @09:54AM (#29578708)
Testing django with pytest is super easy (ex: https://dev.to/sherlockcodes/pytest-with-django-rest-framewo...)
Re:From Node to Ruby on Rails by realusername on Thursday December 16, 2021 @10:18AM (#29578979)
It's nowhere near as equivalent, where's the behavior testing? Where is stuff like allow_any_instance_of(...).to receive(...).and_return(...)? What about shared examples? How can you patch globally the current time? Where are partial matchers like an_object_having_attributes? What about automatic db rollbacks?

Have a look on the examples here https://github.com/rspec/rspec-mocks