Sha256: b1619859d0314690f8d10d46d3b020390f30393491305994d74202a4a9c5aba8

Contents?: true

Size: 427 Bytes

Versions: 19

Compression:

Stored size: 427 Bytes

Contents

if defined?(ActiveRecord::Base)
  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
end

Version data entries

19 entries across 19 versions & 6 rubygems

Version Path
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-rails-1.3.4/lib/spec/rails/matchers/change.rb
richzhou-rspec-rails-1.3.4 lib/spec/rails/matchers/change.rb
rspec-rails-1.3.4 lib/spec/rails/matchers/change.rb
rspec-rails-1.3.3 lib/spec/rails/matchers/change.rb
rspec-rails-1.3.3.rc lib/spec/rails/matchers/change.rb
exception2db-0.0.1 test/rspec-rails/lib/spec/rails/matchers/change.rb
rspec-rails-w-factory_girl-1.3.2.1 lib/spec/rails/matchers/change.rb
rspec-rails-w-factory_girl-1.3.2 lib/spec/rails/matchers/change.rb
rspec-rails-1.3.2 lib/spec/rails/matchers/change.rb
rspec-rails-1.3.1 lib/spec/rails/matchers/change.rb
rspec-rails-1.3.0 lib/spec/rails/matchers/change.rb
hubbub-0.0.11 lib/vendor/plugins/rspec-rails/lib/spec/rails/matchers/change.rb
hubbub-0.0.10 lib/vendor/plugins/rspec-rails/lib/spec/rails/matchers/change.rb
hubbub-0.0.9 lib/vendor/plugins/rspec-rails/lib/spec/rails/matchers/change.rb
hubbub-0.0.8 lib/vendor/plugins/rspec-rails/lib/spec/rails/matchers/change.rb
hubbub-0.0.6 lib/vendor/plugins/rspec-rails/lib/spec/rails/matchers/change.rb
rspec-rails-1.2.9 lib/spec/rails/matchers/change.rb
rspec-rails-1.2.7 lib/spec/rails/matchers/change.rb
rspec-rails-1.2.7.1 lib/spec/rails/matchers/change.rb