Merge pull request #3546 from MikeMcQuaid/formula_assertions_ruby_23
formula_assertions: remove Ruby 2.0 compatibility.
This commit is contained in:
commit
e72fde418b
@ -3,11 +3,6 @@ module Homebrew
|
|||||||
require "test/unit/assertions"
|
require "test/unit/assertions"
|
||||||
include ::Test::Unit::Assertions
|
include ::Test::Unit::Assertions
|
||||||
|
|
||||||
# TODO: remove this when we no longer support Ruby 2.0.
|
|
||||||
unless defined?(Test::Unit::AssertionFailedError)
|
|
||||||
Test::Unit::AssertionFailedError = MiniTest::Assertion
|
|
||||||
end
|
|
||||||
|
|
||||||
# Returns the output of running cmd, and asserts the exit status
|
# Returns the output of running cmd, and asserts the exit status
|
||||||
def shell_output(cmd, result = 0)
|
def shell_output(cmd, result = 0)
|
||||||
ohai cmd
|
ohai cmd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user