FactoryGirl.define do factory :commit do repository_id 1 version "MyString" committer "MyString" comments "MyText" committed_on "2016-07-21" project_id 1 end end