aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_bucket.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/Library/Homebrew/test/test_bucket.rb b/Library/Homebrew/test/test_bucket.rb
index 46d24ec8b..131edacaa 100644
--- a/Library/Homebrew/test/test_bucket.rb
+++ b/Library/Homebrew/test/test_bucket.rb
@@ -159,19 +159,19 @@ class BeerTasting < Test::Unit::TestCase
abcd.cp HOMEBREW_CACHE
assert orig_abcd.exist?
- foo1=HOMEBREW_CACHE+'foo-0.1.tar.gz'
- FileUtils.cp ABS__FILE__, foo1
- assert foo1.file?
-
- assert_equal '.tar.gz', foo1.extname
- assert_equal 'foo-0.1', foo1.stem
- assert_equal '0.1', foo1.version
-
HOMEBREW_CACHE.chmod_R 0777
end
end
end
+ def test_pathname_properties
+ foo1=HOMEBREW_CACHE+'foo-0.1.tar.gz'
+
+ assert_equal '.tar.gz', foo1.extname
+ assert_equal 'foo-0.1', foo1.stem
+ assert_equal '0.1', foo1.version
+ end
+
def test_class_naming
assert_equal 'ShellFm', Formula.class_s('shell.fm')
assert_equal 'Fooxx', Formula.class_s('foo++')