class TestResult

Public Instance Methods

update_file_content(new_content) click to toggle source

Description

Updates the file_content attribute of an TestResult object

Returns

True if saving with the new content succeeds, false otherwise
# File app/models/test_result.rb, line 10
def update_file_content(new_content)
  return false if new_content.nil?
  self.file_content = new_content
  self.save
end