I have installed FactoryBot and trying to use it with RSpec.
scenario 'User signs in' do
create :user, email: '[email protected]', password: 'testpassword'
visit '/users/sign_in'
fill_in 'Email', with: '[email protected]'
fill_in 'Password', with: 'testpassword'
end
and I am getting the following error.
Failure/Error: create :user, email: '[email protected]', password: 'testpassword'
NoMethodError:
undefined method `create' for #<RSpec::ExampleGroups::UserSignIn:0x007fe6324816b8>
FactoryGirl.create
– Tucket