aboutsummaryrefslogtreecommitdiffstats
path: root/example/view1.html
AgeCommit message (Expand)Author
2012-03-28docs(examples): update example appsIgor Minar
2011-02-18add missing example files for temp.htmlIgor Minar
'n28' href='#n28'>28 29 30 31 32 33 34
require "testing_env"

class IntegrationCommandTestMissing < IntegrationCommandTestCase
  def setup
    super

    setup_test_formula "foo"
    setup_test_formula "bar"
  end

  def make_prefix(name)
    (HOMEBREW_CELLAR/name/"1.0").mkpath
  end

  def test_missing_missing
    make_prefix "bar"

    assert_match "foo", cmd("missing")
  end

  def test_missing_not_missing
    make_prefix "foo"
    make_prefix "bar"

    assert_empty cmd("missing")
  end

  def test_missing_hide
    make_prefix "foo"
    make_prefix "bar"

    assert_match "foo", cmd("missing", "--hide=foo")
  end
end