aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_bottle_filename.rb6
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