Sha256: d530d1f1b8778cbbab872ef189389fbf0e25bca78251b1ae9d065c6d7e91ff4c

Contents?: true

Size: 369 Bytes

Versions: 52

Compression:

Stored size: 369 Bytes

Contents

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

Version data entries

52 entries across 52 versions & 7 rubygems

Version Path
cavalle-rspec-rails-1.2.2.0.1 lib/spec/rails/matchers/change.rb
cavalle-rspec-rails-1.2.2.0.2 lib/spec/rails/matchers/change.rb
cavalle-rspec-rails-1.2.3.1 lib/spec/rails/matchers/change.rb
cavalle-rspec-rails-1.2.4.0.1 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.10 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.11.1 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.11.2 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.11.3 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.11.4 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.11.5 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.11.6 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.11.7 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.11 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.12 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.6 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.7 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.8 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.9 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.99.1 lib/spec/rails/matchers/change.rb
dchelimsky-rspec-rails-1.1.99.13 lib/spec/rails/matchers/change.rb