Using Data Fixtures in Packwerk/Stimpack: Any Support for Local Fixtures in Pack Spec Directory?

This message was imported from the Ruby/Rails Modularity Slack server. Find more info in the import thread.

Hey Packwerk/Stimpack enthusiasts…. what are you doing with data fixtures? Is there anything in the tooling to support “local” fixtures in the pack spec dir?

Stimpack supports factory bot https://github.com/rubyatscale/stimpack/blob/main/lib/stimpack/integrations/factory_bot.rb

So we store our factorybot fixtures in our pack directories

@AlexEvanczuk I was trying to refer to fixtures, not factories… https://api.rubyonrails.org/v3.1/classes/ActiveRecord/Fixtures.html

I am using factories for most specs; but some need more data that seems best delivered by a fixture / yml

Oh gotcha! Since this is a stock Rails feature, it would make a lot of sense for stimpack to support this IMO