Formula equality reflects the active spec

This commit is contained in:
Jack Nagel 2014-06-19 21:35:46 -05:00
parent 8976a960df
commit db9f16e2cd

View File

@ -299,7 +299,9 @@ class Formula
end end
def == other def == other
instance_of?(other.class) && name == other.name instance_of?(other.class) &&
name == other.name &&
active_spec == other.active_spec
end end
alias_method :eql?, :== alias_method :eql?, :==