Can it be that your :admin
and :customer
factories does not inherit from your :user
factory? Does it work if your :admin
and :customer
factories are defined like this?
FactoryGirl.define do
factory :admin, parent: :user do
end
factory :customer, parent: :user do
end
end