diff options
| author | Jack Nagel | 2014-07-18 15:14:42 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-18 15:15:12 -0500 |
| commit | 99073dad6f57e2684ec5492e6c0a86ec1db5dffe (patch) | |
| tree | eeacc31d1d07a5b503d2d4f10fc84e90d732a69a /Library/Homebrew/test | |
| parent | 4a95f48e41cfde4007113d486c90367c1351d4a5 (diff) | |
| download | homebrew-99073dad6f57e2684ec5492e6c0a86ec1db5dffe.tar.bz2 | |
Ask the filename object for the prefix
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_bottle_filename.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_bottle_filename.rb b/Library/Homebrew/test/test_bottle_filename.rb index 09dc29e5f..cad538be9 100644 --- a/Library/Homebrew/test/test_bottle_filename.rb +++ b/Library/Homebrew/test/test_bottle_filename.rb @@ -6,6 +6,12 @@ class BottleFilenameTests < Homebrew::TestCase Bottle::Filename.new("foo", "1.0", :tag, revision) end + def test_prefix_suffix + assert_equal "foo-1.0.tag", fn(0).prefix + assert_equal ".bottle.tar.gz", fn(0).suffix + assert_equal ".bottle.1.tar.gz", fn(1).suffix + end + def test_to_str expected = "foo-1.0.tag.bottle.tar.gz" assert_equal expected, fn(0).to_s |
