diff options
| author | Jack Nagel | 2014-06-30 08:54:47 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-06-30 08:54:47 -0500 | 
| commit | c904c71792233c5564a5b73814bfbb8d81389b50 (patch) | |
| tree | 033316d13516b8ebf6bdb39a86f8ea77de729104 /Library/Homebrew/test | |
| parent | a60ea13c64e2e5b562db4989d1bb7f9e91c687d1 (diff) | |
| download | brew-c904c71792233c5564a5b73814bfbb8d81389b50.tar.bz2 | |
Fix tab tests
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_tab.rb | 19 | 
1 files changed, 14 insertions, 5 deletions
diff --git a/Library/Homebrew/test/test_tab.rb b/Library/Homebrew/test/test_tab.rb index ccea2b1be..2b7605d54 100644 --- a/Library/Homebrew/test/test_tab.rb +++ b/Library/Homebrew/test/test_tab.rb @@ -55,7 +55,7 @@ class TabTests < Homebrew::TestCase    end    def test_options -    assert_equal (@used + @unused).to_a, @tab.options.to_a +    assert_equal (@used + @unused).sort, @tab.options.sort    end    def test_cxxstdlib @@ -75,9 +75,9 @@ class TabTests < Homebrew::TestCase      path = Pathname.new(TEST_DIRECTORY).join("fixtures", "receipt.json")      tab = Tab.from_file(path) -    assert_equal @used.to_a, tab.used_options.to_a -    assert_equal @unused.to_a, tab.unused_options.to_a -    assert_equal (@used + @unused).to_a, tab.options.to_a +    assert_equal @used.sort, tab.used_options.sort +    assert_equal @unused.sort, tab.unused_options.sort +    assert_equal (@used + @unused).sort, tab.options.sort      refute_predicate tab, :built_as_bottle      assert_predicate tab, :poured_from_bottle      assert_equal "Homebrew/homebrew", tab.tapped_from @@ -88,7 +88,16 @@ class TabTests < Homebrew::TestCase    end    def test_to_json -    assert_equal @tab, Tab.new(Utils::JSON.load(@tab.to_json)) +    tab = Tab.new(Utils::JSON.load(@tab.to_json)) +    assert_equal @tab.used_options.sort, tab.used_options.sort +    assert_equal @tab.unused_options.sort, tab.unused_options.sort +    assert_equal @tab.built_as_bottle, tab.built_as_bottle +    assert_equal @tab.poured_from_bottle, tab.poured_from_bottle +    assert_equal @tab.tapped_from, tab.tapped_from +    assert_equal @tab.time, tab.time +    assert_equal @tab.HEAD, tab.HEAD +    assert_equal @tab.compiler, tab.compiler +    assert_equal @tab.stdlib, tab.stdlib    end  end  | 
