KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I wonder if there's a way to load and/or use fixture in rails console. Actually, I'd like to create a user from my fixture users.yml to do some testing without having to go through all the "pain" of doing User.new(:name = "John", :email = "..") each time. I am currently in test environment ( rails c RAILS_ENV=test ). If it's not a good way to do things, please say it. I'm new to Rails so I'm here to learn :)
Tags (comma-separated)
Save Edits
Cancel