python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
I am trying to test my project, but creating a user in users.yml file is returning a validation error relating to the password (using Devise & Rails)
EDIT: It's fixed! My issue was that I had added the line:
validates :password, presence: true
in my User model which was causing an error (it's obsolete) because Devise already validates this in th...
Hannah
Votes: 0
Answers: 1
Records disappear during Rails tests when calling PORO (transaction issue?)
I have an existing application (Rails 6) with a set of tests (minitest). I've just converted my tests to use factory_bot instead of fixtures but I'm having a strange problem with records created and c...
JohnP
Votes: 0
Answers: 1
How can I create class “Item” before the class “Transaction” exist, with FactoryBot?
I was wondering if anyone can help. I am receiving an error message in the terminal saying Validation failed: Item must exist. I think that happens because FactoryBot is trying to create a Transaction...

Viktor
Votes: 0
Answers: 1
Ruby on Rails 6 with Minitest: Is there a way to shorten the outputted error?
I'm going through Section 3.3 of The Ruby on Rails Tutorial by Michael Hartl and we just started the section on testing. In this section, we're grouping static pages in a controller (StaticPagesContro...
Christopher Marchant
Votes: 0
Answers: 0