Pass the object itself as an argument, instead of passing its ID. That is, instead of passing :client_id => 1 or :client_id => client.id, pass :client => client.
client = Client.find(1)
Job.create(:client => client, :subject => "Test", :description => "This is a test")