Rubify the syntax. Fix #6: Use temporary file in tests