Class: Spec::Matchers::Change

Inherits:
Object
  • Object
show all
Defined in:
lib/spec/rails/matchers/change.rb

Instance Method Summary collapse

Instance Method Details

#evaluate_value_proc_with_ensured_evaluation_of_proxyObject



5
6
7
8
# File 'lib/spec/rails/matchers/change.rb', line 5

def evaluate_value_proc_with_ensured_evaluation_of_proxy
  value = evaluate_value_proc_without_ensured_evaluation_of_proxy
  ActiveRecord::Associations::AssociationProxy === value ? value.dup : value
end