diff options
| author | Jack Nagel | 2013-11-14 11:10:43 -0600 | 
|---|---|---|
| committer | Jack Nagel | 2013-11-14 11:10:43 -0600 | 
| commit | 8c19edbdd364200fb2cc9276b0bc49ec4cb98aae (patch) | |
| tree | 0233d6d26f94927c986cd75ca5286c06c17eedc8 /Library/Homebrew/test/test_updater.rb | |
| parent | 57014ebb2ee2ac1c2d3479226a90b6380eab1ada (diff) | |
| download | homebrew-8c19edbdd364200fb2cc9276b0bc49ec4cb98aae.tar.bz2 | |
Add some missing test cases for `brew update`
Diffstat (limited to 'Library/Homebrew/test/test_updater.rb')
| -rw-r--r-- | Library/Homebrew/test/test_updater.rb | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_updater.rb b/Library/Homebrew/test/test_updater.rb index 68b439dde..c87d7d4ec 100644 --- a/Library/Homebrew/test/test_updater.rb +++ b/Library/Homebrew/test/test_updater.rb @@ -90,4 +90,15 @@ class UpdaterTests < Test::Unit::TestCase        Pathname('someuser-sometap/custom-formula.rb'),      ], @report.tapped_formula_for(:A)    end + +  def test_update_homebrew_with_removed_formulae +    perform_update(fixture('update_git_diff_output_with_removed_formulae')) +    assert @updater.expectations_met? +    assert_equal %w{libgsasl}, @report.select_formula(:D) +  end + +  def test_update_homebrew_with_changed_filetype +    perform_update(fixture('update_git_diff_output_with_changed_filetype')) +    assert @updater.expectations_met? +  end  end  | 
