Class: TestCaseResultCopy

Inherits:
ObjectCopy show all
Defined in:
lib/translate/copy/test_case_result_copy.rb

Instance Method Summary collapse

Methods inherited from ObjectCopy

#copy, #copy_children, #create_object, #excluded_attributes, #fetch_object, #fetch_project, #find_project_in_new_workspace, #initialize, #remember, #user_exists?

Constructor Details

This class inherits a constructor from ObjectCopy

Instance Method Details

#shallow_copy(object, new_workspace) ⇒ Object



2
3
4
5
6
# File 'lib/translate/copy/test_case_result_copy.rb', line 2

def shallow_copy(object, new_workspace)
  values = super
  values.delete(:tester) unless user_exists? @object.tester
  values
end