Silence warnings

This commit is contained in:
Jack Nagel 2013-07-22 11:41:47 -05:00
parent e33cdb2f8b
commit 6090b9b2bf
3 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ class PythonInstalled < Requirement
attr_reader :if3then3
attr_reader :imports
attr_accessor :site_packages
attr_accessor :binary # The python.rb formula needs to set the binary
attr_writer :binary # The python.rb formula needs to set the binary
fatal true # you can still make Python optional by `depends_on :python => :optional`

View File

@ -9,7 +9,7 @@ class FormulaValidationTests < Test::Unit::TestCase
def test_cant_override_brew
e = assert_raises(RuntimeError) { Class.new(Formula) { def brew; end } }
assert_match /You cannot override Formula#brew/, e.message
assert_match %r{You cannot override Formula#brew}, e.message
end
def test_validates_name

View File

@ -64,11 +64,11 @@ class PathnameExtensionTests < Test::Unit::TestCase
@file.cp(@dir)
assert @file.file?
assert (@dir+@file.basename).file?
assert((@dir+@file.basename).file?)
@dir.cp(@dst)
assert @dir.directory?
assert (@dst+@dir.basename).directory?
assert((@dst+@dir.basename).directory?)
end
def test_ensure_writable