Improvement in rspec and get file showing size