class IdentityAssay

Check that two objects are one and the same object.

NOTE: Ruby defines equal? to mean identical? but I believe this to be a misnomer, at the very least. So we use the term ‘identical` instead.

Public Class Methods

pass?(subject, criterion) click to toggle source

Check assertion using ‘object_id == object_id`.

# File lib/assay/identity_assay.rb, line 16
def self.pass?(subject, criterion)
  subject.identical?(criterion)  #subject.object_id == criterion.object_id
end