Michael Koper
michaelkoper.com
Michael Koper
@michaelkoper.com
Dad of two - Founder of https://nusii.com - Bootstrapper - Ruby on Rails
😂
November 20, 2025 at 12:58 PM
I haven't done the course myself, but I am very interested in this one: screencasting.com

I bought a Postgresql course from the creator and it was really good. And I know some people personally who took the screencasting courses and they all said it was solid.
Screencasting courses, tools & guides - Screencasting.com
Learn how to create high-quality screencasts faster than ever with our courses, tools, and guides.
screencasting.com
November 20, 2025 at 12:55 PM
You are a yaml!
November 20, 2025 at 12:50 PM
I hope they won't do the impossible question I get all the time for their Captcha.

Are you for Real Madrid or Barcelona?
November 18, 2025 at 9:34 AM
In an ideal world, you could get rid of that blue one and just use the red one!
November 18, 2025 at 9:26 AM
That is interesting! Never heard this before. You have some sort of blog post about this?
November 17, 2025 at 2:33 PM
Ok ok, I understand sum is a special case. This is a real life example. How would you test the method on Offer here. Would you stub those relations out or just create those records in the tests?
November 17, 2025 at 2:21 PM
This is a simplified real life example of something that is hard to stub out but doesn't use raw SQL.

Here I just create some line items in the test
November 17, 2025 at 1:52 PM
This is a more real life example of some code that is hard and annoying to stub out
November 17, 2025 at 1:51 PM
Yeah I use build or build_stubbed wherever I can. But lets say, something like this. I could stub the activities has_many relation. Or I could just create the record and test if the method really works.

(not a real example, but you get the idea 😅)
November 17, 2025 at 1:42 PM
So what I call a unit test for example:

user = User.create(name: 'John', surname: 'Doe')
expect user.full_name to be 'John Doe'

Would you call this an integration test or a Unit test in the PHP world?
November 17, 2025 at 12:31 PM
We have multiple ways to prepare test data, one is from yaml files (Fixtures) and the other one is from Factories (sometimes stubbed objects, sometimes creating directly to database).
November 17, 2025 at 12:31 PM
I think the confusion in Rails land is that we maybe have the naming wrong?

Integration tests, test the whole stack. Like, visit page and check if successful. On the Controller level.

Unit Tests are tests for your models which are plain objects, which many times are attached to a database table.
November 17, 2025 at 12:31 PM
Lucian the true influencer!
November 17, 2025 at 9:19 AM
Loved it!
November 15, 2025 at 1:22 PM
Only on video calls!
November 14, 2025 at 7:45 AM
Why do AI replies? Does that really work?
November 14, 2025 at 7:03 AM
We can't stay tuned for more than a month!
November 13, 2025 at 1:07 PM