We've moved discussions to Discord

Updated Tests

Chris Oliver
Just wanted to give everyone a heads up on some improvements this week:

I just published some updates to the tests to make sure everything is passing out of the box. I'll be making more updates to these in the future to setup conditional tests so that when some features are turned on, their tests are also enabled.

OmniAuth tests are updated to use a "developer" provider in test mode which allows us to fake out OAuth stuff. It's built-in to OmniAuth, so you don't need any extra gems for it. You can copy these tests if you want to build tests around Github, Twitter, etc.

TeamMember role methods now have tests and verify they're casting to booleans.

Murray Bryant pointed out that system tests generated by scaffolds weren't working. I've overridden the templates them now so that they work with the Jumpstart Pro scaffold templates.

I'll also be setting up Gitlab CI in the near future so we'll have those tests running regularly on the main repository.
Dan Weaver
Looking forward to your minitest vs RSpec video.
William Flanagan
Yeah, I'm coming from RSpec, and man.. fixtures are KILLING me. Errors everywhere and terrible error messages. 
Chris Oliver
Haha, they're nothing more than setting values directly to the database columns. Since they're just writing the raw values, you just have to be careful. Sometimes those error messages are not intuitive, that's definitely true.

Feel free to add your own factories. I tend to use a mixture of both when projects get bigger. 

Jumpstart itself is small, so no sense in the additional dependency for such a simple set of tests.
Guled Ali
Chris Oliver  It should certainly be an option in the beginning if people want to use rspec and factorybot or minitest and fixtures. 
Matthias Orgler
Oh yes, I also come from rspec and the error messages with minitest seem horrible ("Expected false to be truthy"). Would definitely appreciate to have better error message and factory support from the start (either through rspec and factorybot or some other way).
Notifications
You’re not receiving notifications from this thread.