From b78308d2d5a8dd26818eba88bb58ee547d6dfdb0 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 3 Jul 2014 14:54:14 -0500 Subject: Fix Formula#<=> on trunk Ruby Arguably this method shouldn't exist and sort_by(&:name) used instead. --- Library/Homebrew/test/test_formula.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Homebrew/test') diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb index 900d7272c..9a509f3bf 100644 --- a/Library/Homebrew/test/test_formula.rb +++ b/Library/Homebrew/test/test_formula.rb @@ -139,6 +139,10 @@ class FormulaTests < Homebrew::TestCase refute_equal TestBall.new, Object.new end + def test_sort_operator + assert_nil TestBall.new <=> Object.new + end + def test_class_naming assert_equal 'ShellFm', Formulary.class_s('shell.fm') assert_equal 'Fooxx', Formulary.class_s('foo++') -- cgit v1.2.3