diff options
| author | Baptiste Fontaine | 2015-07-20 21:46:05 +0200 |
|---|---|---|
| committer | Baptiste Fontaine | 2015-07-25 00:00:30 +0200 |
| commit | ca1f5dc713313485b13512571cd222c4e89730a3 (patch) | |
| tree | e70a35c03fd0b59ae211ae043f00bbf0779a4456 /Library/Homebrew/test/test_caveats.rb | |
| parent | a675aae553949706c54c8868a941373d73909260 (diff) | |
| download | brew-ca1f5dc713313485b13512571cd222c4e89730a3.tar.bz2 | |
more unit tests
Closes Homebrew/homebrew#42096.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library/Homebrew/test/test_caveats.rb')
| -rw-r--r-- | Library/Homebrew/test/test_caveats.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_caveats.rb b/Library/Homebrew/test/test_caveats.rb new file mode 100644 index 000000000..5708ebc03 --- /dev/null +++ b/Library/Homebrew/test/test_caveats.rb @@ -0,0 +1,27 @@ +require 'testing_env' + +class CaveatsTests < Homebrew::TestCase + def setup + @f = formula { url "foo-1.0" } + @c = Caveats.new @f + end + + def test_f + assert_equal @f, @c.f + end + + def test_empty? + assert @c.empty? + + f = formula do + url "foo-1.0" + + def caveats + "something" + end + end + c = Caveats.new f + + refute c.empty? + end +end |
