I installed a factory girl and tried to use it with a spec.
scenario 'User signs in' do create :user, email: 'test@example.com', password: 'testpassword' visit '/users/sign_in' fill_in 'Email', with: 'test@example.com' fill_in 'Password', with: 'testpassword' end
and I get the following error.
Failure/Error: create :user, email: 'test@example.com', password: 'testpassword' NoMethodError: undefined method `create' for #<RSpec::ExampleGroups::UserSignIn:0x007fe6324816b8>
rspec factory-bot
user3814030
source share