require 'faker' FactoryGirl.define do factory :user do login "ExampleUser" mail "user@example.com" password "foobar" password_confirmation "foobar" end end