# File lib/sugar-high/rspec/matchers/have_aliases.rb, line 18 def matches? obj, options={} if !obj.respond_to? method cause << "Method ##{method} to alias does NOT exist" return nil end alias_methods.each do |method| cause << "Alias method ##{method} does NOT exist" if !is_alias? obj, alias_meth end cause.empty? end