Last active
November 17, 2024 17:28
-
-
Save bassemawhoob/931c2619a68cd3affc019f34731dbdbd to your computer and use it in GitHub Desktop.
Using FactoryBot in Rails console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: https://stackoverflow.com/questions/18195851/how-do-i-use-factories-from-factorybot-in-rails-console | |
require 'factory_bot' | |
include FactoryBot::Syntax::Methods |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment