FactoryGirl creates 2 users every time when running test (installed guard and spork, it might be the reason as I create a new rails project, when using FactoryGirl, it just create 1 user each time). Altered spec/factories.rb file using sequence() as a work around. Also, using after(:all) in spec/request/user_pages_spec.rb to delete all users created in test database during test.