Skip to content
Snippets Groups Projects
Commit 6090b9b2 authored by Jack Nagel's avatar Jack Nagel
Browse files

Silence warnings

parent e33cdb2f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment