You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to re-use Oaken fixtures in a Lookbook for presenting previews of Rails view components.
How do I load an Oaken seed like accounts.admin_user in a plain Ruby class? It seems like including the Oaken::TestSetup doesn't seem to work - it expects the including class to be a ActiveSupport::TestCase.
Or is there an Oaken class method I can call? Like Oaken.load(:accounts) or something?
The text was updated successfully, but these errors were encountered:
Hey, thanks for opening this! I definitely need to look into this more. It's a bit ironic because this is actually part of Oaken's design goals to support this kind of stuff, I just haven't quite fleshed it out yet.
I'm not too familiar with Lookbook and how it boots, but you can do stuff like this:
includeOaken::Seedsseed"cases/lookbook"defsome_previewaccounts.admin_user# Or Oaken::Seeds.accounts.admin_userend
I'm trying to re-use Oaken fixtures in a Lookbook for presenting previews of Rails view components.
How do I load an Oaken seed like
accounts.admin_user
in a plain Ruby class? It seems like including theOaken::TestSetup
doesn't seem to work - it expects the including class to be aActiveSupport::TestCase
.Or is there an Oaken class method I can call? Like
Oaken.load(:accounts)
or something?The text was updated successfully, but these errors were encountered: