Updated Tests
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.
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.
I'll also be setting up Gitlab CI in the near future so we'll have those tests running regularly on the main repository.
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.
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.
Notifications
You’re not receiving notifications from this thread.