Alain Ravet said about 5 years ago on Creating a Gem From Existing Code :
No mention of what to do with the tests? That's the hard part: - how to run them, while developing the gem, AND - how to include them with the app tests suite when running on CI.