RSpec gives error 'trait not registered: name'

It's a FactoryGirl error, and it seems you're using (at spec/features/sign_in_spec.rb:11) something like :

FactoryGirl.create :user, :name

This will only work if you registered a trait called name for the Factory user, more on traits here

Note that if you just want to override the name of the created user, the syntax is

FactoryGirl.create :user, name: 'THE NAME'

I know this is an old question, but in case anyone else ends up here when searching "Trait not registered":

When using a dependent attribute like how email depends on name in the :club factory from the question, you need to wrap the attribute in curly braces so it gets lazy evaluated:

email {"#{name}@example.com"}