Silence warnings
This commit is contained in:
parent
e33cdb2f8b
commit
6090b9b2bf
@ -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`
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user