tracks/vendor/plugins/rspec-rails/lib/spec/rails/matchers/change.rb

12 lines
369 B
Ruby
Raw Normal View History

module Spec
module Matchers
class Change
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
alias_method_chain :evaluate_value_proc, :ensured_evaluation_of_proxy
end
end
end