Formula equality reflects the active spec
This commit is contained in:
parent
8976a960df
commit
db9f16e2cd
@ -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?, :==
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user