add FakeRecord class
let RepositoryFile inherit from FakeRecord
use resource_class in FilesController
remove whitespaces
fix update file view